[libcamera-devel] [PATCH 10/10] utils: raspberrypi: ctt: json_pretty_print: Add newline at end of output

Laurent Pinchart laurent.pinchart at ideasonboard.com
Fri Jul 3 02:14:22 CEST 2020


Make sure the output ends with a newline.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 utils/raspberrypi/ctt/ctt_pretty_print_json.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/raspberrypi/ctt/ctt_pretty_print_json.py b/utils/raspberrypi/ctt/ctt_pretty_print_json.py
index 2ca307a0af11..d38ae6178524 100644
--- a/utils/raspberrypi/ctt/ctt_pretty_print_json.py
+++ b/utils/raspberrypi/ctt/ctt_pretty_print_json.py
@@ -86,6 +86,7 @@ class JSONPrettyPrinter(object):
     def print(self, string):
         for c in string:
             self.process_char(c)
+        self.newline()
 
 
 def pretty_print_json(str_in, output_filename):
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list