From: Dmitry V. Levin Date: Sat, 15 Jul 2017 00:08:12 +0000 (+0000) Subject: Introduce PRINT_FIELD_PTR X-Git-Tag: v4.19~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bafd1007465eaad759915abbe2589c1c11b7af2;p=strace Introduce PRINT_FIELD_PTR * print_fields.h (PRINT_FIELD_PTR): New macro. --- diff --git a/print_fields.h b/print_fields.h index 2441defb..0ca9dfc9 100644 --- a/print_fields.h +++ b/print_fields.h @@ -128,4 +128,10 @@ print_dev_t((where_).field_); \ } while (0) +#define PRINT_FIELD_PTR(prefix_, where_, field_) \ + do { \ + STRACE_PRINTF("%s%s=", (prefix_), #field_); \ + printaddr((mpers_ptr_t) (where_).field_); \ + } while (0) + #endif /* !STRACE_PRINT_FIELDS_H */