diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-09-20 03:26:20 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-10-12 00:35:30 +0200 |
commit | 3f75c17df6b607d9283a8eb6df88094e3a81f655 (patch) | |
tree | 6902489913b4bcbf1528c316cd570babac6ee7e8 | |
parent | d0bf06bfa085c6791ebad5ab4ccbc8e090333a5f (diff) | |
download | strace-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.c | 2 |
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; } |