From patchwork Wed Mar 18 16:30:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 3176 Return-Path: Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 15C4C60418 for ; Wed, 18 Mar 2020 17:27:48 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id AA7721BF214 for ; Wed, 18 Mar 2020 16:27:47 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 18 Mar 2020 17:30:40 +0100 Message-Id: <20200318163040.629527-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] cam: Print one property per line X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 16:27:48 -0000 When printing camera properties, print one property per line. Fixes: a14b6baca9af ("cam: Add option to list camera properties") Signed-off-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- src/cam/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cam/main.cpp b/src/cam/main.cpp index ea6f7914839c..25282a04dcae 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -284,7 +284,8 @@ int CamApp::listProperties() const ControlId *id = properties::properties.at(prop.first); const ControlValue &value = prop.second; - std::cout << "Property: " << id->name() << " = " << value.toString(); + std::cout << "Property: " << id->name() << " = " + << value.toString() << std::endl; } return 0;