Message ID | 20200703001422.24324-5-laurent.pinchart@ideasonboard.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
diff --git a/utils/raspberrypi/ctt/ctt_pretty_print_json.py b/utils/raspberrypi/ctt/ctt_pretty_print_json.py index 703a23fe25db..3de8c108f01c 100644 --- a/utils/raspberrypi/ctt/ctt_pretty_print_json.py +++ b/utils/raspberrypi/ctt/ctt_pretty_print_json.py @@ -89,4 +89,5 @@ if __name__ == '__main__': input_filename = sys.argv[1] with open(input_filename, "r") as fin: - pretty_print_json(fin.read(), "pretty.json") + printer = JSONPrettyPrinter(sys.stdout) + printer.print(fin.read())
The standalone test mode output to a file name "pretty.json". To make the test mode more versatile, output to stdout instead. The user can then decide how to use the output. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- utils/raspberrypi/ctt/ctt_pretty_print_json.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)