summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-09-20 03:26:20 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-10-12 00:35:30 +0200
commit3f75c17df6b607d9283a8eb6df88094e3a81f655 (patch)
tree6902489913b4bcbf1528c316cd570babac6ee7e8
parentd0bf06bfa085c6791ebad5ab4ccbc8e090333a5f (diff)
downloadstrace-3f75c17df6b607d9283a8eb6df88094e3a81f655.tar.gz
util: print ellipsis inside an empty array if PAF_ARRAY_TRUNCATED is set
* src/util.c (print_array_ex) <!nmemb>: Call tprint_more_data_follows() if PAF_ARRAY_TRUNCATED is set in flags.
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 6a685b8f2..b07acdb77 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1592,6 +1592,8 @@ print_array_ex(struct tcb *const tcp,
if (!nmemb) {
tprint_array_begin();
+ if (flags & PAF_ARRAY_TRUNCATED)
+ tprint_more_data_follows();
tprint_array_end();
return false;
}