Introduce PRINT_FIELD_PTR
* print_fields.h (PRINT_FIELD_PTR): New macro.
This commit is contained in:
parent
ba7d84b679
commit
5bafd10074
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user