diff options
| author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-12-16 01:50:08 +0100 |
|---|---|---|
| committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2022-07-21 11:28:59 +0200 |
| commit | 771992cb705f3ff39bfdf6bf35bdff70b16c8a62 (patch) | |
| tree | dd0457fe9f141ff59cbd0836b38cd1dbe1836440 | |
| parent | b052181dc3e52d5d6bc7825b30ada81d4953d4b4 (diff) | |
| download | strace-771992cb705f3ff39bfdf6bf35bdff70b16c8a62.tar.gz | |
print_fields: add tprint_{shift,or} to make xlat-like output more structured
* src/print_fields.h (tprint_shift, tprint_or): New functions.
| -rw-r--r-- | src/print_fields.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/print_fields.h b/src/print_fields.h index eb351c09b..366efcceb 100644 --- a/src/print_fields.h +++ b/src/print_fields.h @@ -163,6 +163,18 @@ tprint_unavailable(void) } static inline void +tprint_shift(void) +{ + STRACE_PRINTS("<<"); +} + +static inline void +tprint_or(void) +{ + STRACE_PRINTS("|"); +} + +static inline void tprints_field_name(const char *name) { STRACE_PRINTF("%s=", name); |
