[libcamera-devel] [PATCH] cam: Print one property per line
Jacopo Mondi
jacopo at jmondi.org
Wed Mar 18 17:30:40 CET 2020
When printing camera properties, print one property per line.
Fixes: a14b6baca9af ("cam: Add option to list camera properties")
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
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;
--
2.25.1
More information about the libcamera-devel
mailing list