From e0228c6b71c0c282181944f7ba4cf841472c215d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 15 May 2019 22:24:25 +0300 Subject: Fix pretty-printing copy-pasta --- pretty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pretty.c b/pretty.c index fd4ff56..3238955 100644 --- a/pretty.c +++ b/pretty.c @@ -504,9 +504,9 @@ static void print_properties(struct json_object *obj, const char *prefix) const char *smax_str = i64_str(smax); if (smin_str) - printf("range [%s, ", smin_str); + printf("srange [%s, ", smin_str); else - printf("range [%"PRIi64", ", smin); + printf("srange [%"PRIi64", ", smin); if (smax_str) printf("%s]", smax_str); @@ -530,6 +530,7 @@ static void print_modes(struct json_object *arr, const char *prefix) return; } + printf("%s" L_VAL "Modes\n", prefix); for (size_t i = 0; i < json_object_array_length(arr); ++i) { bool last = i == json_object_array_length(arr) - 1; printf("%s" L_LINE "%s", prefix, last ? L_LAST : L_VAL); -- cgit v1.2.3