]> granicus.if.org Git - strace/commit
tests: add xlat verbosity support to printxval
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 19 Jul 2019 16:14:20 +0000 (18:14 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 Sep 2019 15:31:28 +0000 (15:31 +0000)
commit1ddbd47d72e591c5ea83e36cf044af1f6e5b6df1
treefa3f03db5851bf3448e0002e3ddf93a97b09d859
parente6905e32045e144de4e72fb8cfd32cfc7ef1c435
tests: add xlat verbosity support to printxval

* tests/Makefile.am (libtests_a_SOURCES): Remove printxval.c, add
printxval-Xabbrev.c, printxval-Xraw.c, and printxval-Xverbose.c.
(EXTRA_DIST): Add printxval.c.
* tests/printxval.c [!XLAT_RAW] (lookup_xlat): New function.
(printxval): Wrap in XLAT_NAME.
(sprintxlat, sprintxval): New functions.
* tests/printxval-Xabbrev.c: New file.
* tests/printxval-Xraw.c: Likewise.
* tests/printxval-Xverbose.c: Likewise.
* tests/tests.h (printxval): Remove declaration.
(printxval_abbrev, printxval_raw, printxval_verbose, sprintxlat_abbrev,
sprintxlat_raw, sprintxlat_verbose, sprintxval_abbrev, sprintxval_raw,
sprintxval_verbose): New declarations.
(printxval, sprintxlat, sprintxval): New macros, defined based on values
of XLAT_RAW amd XLAT_VERBOSE macros.
* tests/ioprio.c: Simplify the printing code since printxval now has
xlat verbosity support.
tests/Makefile.am
tests/ioprio.c
tests/printxval-Xabbrev.c [new file with mode: 0644]
tests/printxval-Xraw.c [new file with mode: 0644]
tests/printxval-Xverbose.c [new file with mode: 0644]
tests/printxval.c
tests/tests.h