]> granicus.if.org Git - strace/commit
Unify different generic PRINT_FIELD_* implementations
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Jul 2017 13:14:49 +0000 (13:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Jul 2017 13:14:49 +0000 (13:14 +0000)
commit26954f775380c11eecd486f0959a222a61a51454
treee52addfec16fef0ed516f01d5792ac1a810b9330
parent373ff8cc4f91594ccd0f2ae1a68251524dd40d15
Unify different generic PRINT_FIELD_* implementations

Create a new header print_fields.h and move generic PRINT_FIELD_*
macros there.

* print_fields.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* netlink_sock_diag.c: Include "print_fields.h".
(PRINT_FIELD_U, PRINT_FIELD_X, PRINT_FIELD_COOKIE, PRINT_FIELD_FLAGS,
PRINT_FIELD_XVAL): Move to print_fields.h file.
* quota.c: Include "print_fields.h".
(PRINT_FIELD_D): Move to print_fields.h file.
(PRINT_FIELD_U, PRINT_FIELD_X): Remove.
* statx.c: Include "print_fields.h".
(PRINT_FIELD_U): Remove.
(SYS_FUNC(statx)): Update PRINT_FIELD_U callers.
* tests/quotactl.h: Include "print_fields.h".
* tests/quotactl-xfs.c: Update callers of PRINT_FIELD_* macros.
* tests/quotactl.c: Likewise.
(PRINT_FIELD_D, PRINT_FIELD_U, PRINT_FIELD_X): Remove.
* tests/test_nlattr.h: Include "print_fields.h".
(PRINT_FIELD_U, PRINT_FIELD_X): Remove.
* tests/xstatx.c: Include "print_fields.h".
(PRINT_FIELD_U): Remove.
(print_stat): Update PRINT_FIELD_U callers.
* tests/tests.h [!STRACE_PRINTF] (STRACE_PRINTF): Define to printf.
Makefile.am
netlink_sock_diag.c
print_fields.h [new file with mode: 0644]
quota.c
statx.c
tests/quotactl-xfs.c
tests/quotactl.c
tests/quotactl.h
tests/test_nlattr.h
tests/tests.h
tests/xstatx.c