Introduce PRINT_FIELD_PTR

* print_fields.h (PRINT_FIELD_PTR): New macro.
This commit is contained in:
Дмитрий Левин 2017-07-15 00:08:12 +00:00
parent ba7d84b679
commit 5bafd10074

View File

@ -128,4 +128,10 @@
print_dev_t((where_).field_); \ print_dev_t((where_).field_); \
} while (0) } 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 */ #endif /* !STRACE_PRINT_FIELDS_H */