]> granicus.if.org Git - strace/blobdiff - tests/quotactl.h
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / quotactl.h
index 31eaec58605c1e2e673ce44aef4f4483a53ed115..d3cf53bf2df4d11bf5446df0ccc13b2c0b47d815 100644 (file)
@@ -34,6 +34,7 @@
 # include <inttypes.h>
 # include <stdarg.h>
 # include <stdio.h>
+# include "print_fields.h"
 
 # ifdef HAVE_LINUX_QUOTA_H
 /* Broken in CentOS 5: has extern spinlock_t dq_data_lock; declaration */
 #  define PRJQUOTA 2
 # endif
 
-# define PRINT_FIELD_D(prefix, where, field)   \
-       printf("%s%s=%lld", (prefix), #field,   \
-              sign_extend_unsigned_to_ll((where)->field))
-
-# define PRINT_FIELD_U(prefix, where, field)   \
-       printf("%s%s=%llu", (prefix), #field,   \
-              zero_extend_signed_to_ull((where)->field))
-
-# define PRINT_FIELD_X(prefix, where, field)   \
-       printf("%s%s=%#llx", (prefix), #field,  \
-              zero_extend_signed_to_ull((where)->field))
-
 typedef void (*print_cb)(long rc, void *addr, void *arg);
 
 enum check_quotactl_flag_bits {