summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-03-18 17:29:23 +0100
committerJacopo Mondi <jacopo@jmondi.org>2020-03-20 15:13:04 +0100
commitcf66c4406bbd66b885090d2ddbe2b72b6fb0492d (patch)
tree040be653eabb5272a8c27b32342e153bbdd5bf07 /src
parente0808528d855dd6f4a82ee4a569a86cf6e45f532 (diff)
cam: Print one property per line
When printing camera properties, print one property per line. Fixes: a14b6baca9af ("cam: Add option to list camera properties") Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/cam/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index f73e77f3..2a0a830f 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;