]> granicus.if.org Git - strace/commitdiff
Introduce PRINT_FIELD_PTR
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 15 Jul 2017 00:08:12 +0000 (00:08 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 15 Jul 2017 00:08:12 +0000 (00:08 +0000)
* print_fields.h (PRINT_FIELD_PTR): New macro.

print_fields.h

index 2441defb81e99a7116e21ef6c9f06364bdf29136..0ca9dfc9d9fbea60e89bf92ea288efafff1a7582 100644 (file)
                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 */