From patchwork Sat Apr 27 01:25:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1118 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 4116360B1B for ; Sat, 27 Apr 2019 03:25:19 +0200 (CEST) Received: from Q.station (net-37-182-44-227.cust.vodafonedsl.it [37.182.44.227]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A1C4F5F; Sat, 27 Apr 2019 03:25:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1556328318; bh=aUphwSAa90BQ/rYeEW8ww8DV52rlxiDqt6xritr5/aw=; h=From:To:Cc:Subject:Date:From; b=vG8x5kexqWzGzR5nGzclmhozIpi6WhRFfT4qHywAppmCK5k3jilnOnDmPyN0c2Kr3 sEbT4PnVUEJv7DwKQvdx+Va/m9fqQ0r4xX6OB0VBfdU72/LV0ETvnbc72UvO5+W6Cu g1PHw01Sef5s87V2gpu/MdRHKJQ+u6SzXoiRFnGo= From: Kieran Bingham To: LibCamera Devel Date: Sat, 27 Apr 2019 03:25:09 +0200 Message-Id: <20190427012509.32153-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: v4l2_device: Prefix V4L2 direction in log messages 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: Sat, 27 Apr 2019 01:25:19 -0000 The V4L2Device will use the same deviceNode for two directions in the case of an M2M device. Add the direction to identify the queue direction on each instance. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/v4l2_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index a6e9ca247828..a21944160253 100644 --- a/src/libcamera/v4l2_device.cpp +++ b/src/libcamera/v4l2_device.cpp @@ -415,7 +415,7 @@ void V4L2Device::close() std::string V4L2Device::logPrefix() const { - return deviceNode_; + return deviceNode_ + (V4L2_TYPE_IS_OUTPUT(bufferType_) ? "[out]" : "[cap]"); } /**