diff options
author | Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com> | 2022-10-18 11:23:15 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2022-12-15 08:00:00 +0000 |
commit | 28863b3901704740823d64487711c70751d99fc9 (patch) | |
tree | 725fc758d4854fb75734869ef5a0b65c9c7cc064 /src/term.c | |
parent | 34ad3f12ae8529259679c43bbab9b95d47f2299f (diff) | |
download | strace-28863b3901704740823d64487711c70751d99fc9.tar.gz |
src: introduce tprint_array_index_equal helper
* src/print_fields.h (tprint_array_index_equal): Rename from
tprint_array_index_end.
(tprint_array_index_end): New function.
* src/btrfs.c (btrfs_ioctl): Use them.
* src/term.c (print_cc_char): Likewise.
* src/util.c (print_array_ex): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 2cf3aeb0f..79366cefa 100644 --- a/src/term.c +++ b/src/term.c @@ -119,9 +119,10 @@ print_cc_char(bool *first, const unsigned char *data, const char *s, tprints(s); else PRINT_VAL_U(idx); - tprint_array_index_end(); + tprint_array_index_equal(); PRINT_VAL_X(data[idx]); + tprint_array_index_end(); } static void |