diff options
author | Simon Ser <contact@emersion.fr> | 2019-05-15 22:24:25 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-05-15 22:26:42 +0300 |
commit | e0228c6b71c0c282181944f7ba4cf841472c215d (patch) | |
tree | 8bfe4692eb1a41682eebf284d0fd13b85ae9580b | |
parent | 26ea72e5f1e7b3dcab8cc65363a002311522e28c (diff) | |
download | external_drm_info-e0228c6b71c0c282181944f7ba4cf841472c215d.tar.gz external_drm_info-e0228c6b71c0c282181944f7ba4cf841472c215d.tar.bz2 external_drm_info-e0228c6b71c0c282181944f7ba4cf841472c215d.zip |
Fix pretty-printing copy-pasta
-rw-r--r-- | pretty.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |