{"id":3176,"url":"https://patchwork.libcamera.org/api/patches/3176/?format=json","web_url":"https://patchwork.libcamera.org/patch/3176/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200318163040.629527-1-jacopo@jmondi.org>","date":"2020-03-18T16:30:40","name":"[libcamera-devel] cam: Print one property per line","commit_ref":"cf66c4406bbd66b885090d2ddbe2b72b6fb0492d","pull_url":null,"state":"accepted","archived":false,"hash":"b2ab881bc3df9eabd7a69a8f18f50f0de55f5459","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3176/mbox/","series":[{"id":734,"url":"https://patchwork.libcamera.org/api/series/734/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=734","date":"2020-03-18T16:30:40","name":"[libcamera-devel] cam: Print one property per line","version":1,"mbox":"https://patchwork.libcamera.org/series/734/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3176/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3176/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net\n\t[217.70.183.201])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 15C4C60418\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 18 Mar 2020 17:27:48 +0100 (CET)","from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it\n\t[2.224.242.101]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay8-d.mail.gandi.net (Postfix) with ESMTPSA id AA7721BF214\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 18 Mar 2020 16:27:47 +0000 (UTC)"],"X-Originating-IP":"2.224.242.101","From":"Jacopo Mondi <jacopo@jmondi.org>","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","Content-Transfer-Encoding":"8bit","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":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Wed, 18 Mar 2020 16:27:48 -0000"},"content":"When printing camera properties, print one property per line.\n\nFixes: a14b6baca9af (\"cam: Add option to list camera properties\")\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/cam/main.cpp | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)","diff":"diff --git a/src/cam/main.cpp b/src/cam/main.cpp\nindex ea6f7914839c..25282a04dcae 100644\n--- a/src/cam/main.cpp\n+++ b/src/cam/main.cpp\n@@ -284,7 +284,8 @@ int CamApp::listProperties()\n \t\tconst ControlId *id = properties::properties.at(prop.first);\n \t\tconst ControlValue &value = prop.second;\n \n-\t\tstd::cout << \"Property: \" << id->name() << \" = \" << value.toString();\n+\t\tstd::cout << \"Property: \" << id->name() << \" = \"\n+\t\t\t  << value.toString() << std::endl;\n \t}\n \n \treturn 0;\n","prefixes":["libcamera-devel"]}