From patchwork Wed Feb 13 12:20:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 565 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DF5816101F for ; Wed, 13 Feb 2019 13:20:39 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 51A71304; Wed, 13 Feb 2019 13:20:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1550060439; bh=pL3qFJPckIIefvvoNklKfXVSsOSfhOJZpk3CRwOqITw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tZRud8MMrM4DpneY/yFNPaB4lK4RSX1NXe9hXYAjkAfS7elZJ5XJNytrTIFzentYF P3o4fKU09ELrOwHRS8GbNeHjwro4zswrDATqgGAcxUdGgCdZRJMY+zozBR/C7B4YEf outPM/gk5GUFNDHbuJZejQhyy3jU8yDaBqHtDWUY= From: Kieran Bingham To: LibCamera Devel Date: Wed, 13 Feb 2019 12:20:33 +0000 Message-Id: <20190213122035.25309-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190213122035.25309-1-kieran.bingham@ideasonboard.com> References: <20190213122035.25309-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] libcamera: v4l2_device: Fix LOG usage X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2019 12:20:40 -0000 Add the V4L2 category to the LOG() statements. Signed-off-by: Kieran Bingham --- src/libcamera/v4l2_device.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index 683090abc8e5..d92e20b97d50 100644 --- a/src/libcamera/v4l2_device.cpp +++ b/src/libcamera/v4l2_device.cpp @@ -390,7 +390,7 @@ int V4L2Device::getFormatSingleplane(V4L2DeviceFormat *format) ret = ioctl(fd_, VIDIOC_G_FMT, &v4l2Format); if (ret) { ret = -errno; - LOG(Error) << "Unable to get format: " << strerror(-ret); + LOG(V4L2, Error) << "Unable to get format: " << strerror(-ret); return ret; } @@ -419,7 +419,7 @@ int V4L2Device::setFormatSingleplane(V4L2DeviceFormat *format) ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format); if (ret) { ret = -errno; - LOG(Error) << "Unable to set format: " << strerror(-ret); + LOG(V4L2, Error) << "Unable to set format: " << strerror(-ret); return ret; } @@ -447,7 +447,7 @@ int V4L2Device::getFormatMultiplane(V4L2DeviceFormat *format) ret = ioctl(fd_, VIDIOC_G_FMT, &v4l2Format); if (ret) { ret = -errno; - LOG(Error) << "Unable to get format: " << strerror(-ret); + LOG(V4L2, Error) << "Unable to get format: " << strerror(-ret); return ret; } @@ -484,7 +484,7 @@ int V4L2Device::setFormatMultiplane(V4L2DeviceFormat *format) ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format); if (ret) { ret = -errno; - LOG(Error) << "Unable to set format: " << strerror(-ret); + LOG(V4L2, Error) << "Unable to set format: " << strerror(-ret); return ret; }