[libcamera-devel] [PATCH] cam: Print one property per line
Niklas Söderlund
niklas.soderlund at ragnatech.se
Thu Mar 19 01:08:41 CET 2020
Hi Jacopo,
Thanks for your work.
On 2020-03-18 17:30:40 +0100, Jacopo Mondi wrote:
> 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>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> 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
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list