summaryrefslogtreecommitdiff
path: root/utils/raspberrypi
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-03 01:43:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-03 18:15:56 +0300
commita83d6ac90170686a2d2669616cd96d4e45ba70f2 (patch)
tree8c156772594a2a01049b0b786b38364dedaadfe4 /utils/raspberrypi
parentf128acc32584c07f900f0268b12133b2d227e279 (diff)
utils: raspberrypi: ctt: json_pretty_print: Add newline at end of output
Make sure the output ends with a newline. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Tested-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'utils/raspberrypi')
-rw-r--r--utils/raspberrypi/ctt/ctt_pretty_print_json.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/raspberrypi/ctt/ctt_pretty_print_json.py b/utils/raspberrypi/ctt/ctt_pretty_print_json.py
index 2ca307a0..d38ae617 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):