]> granicus.if.org Git - strace/commit
Introduce XLAT_STYLE_DEFAULT
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 10 Mar 2018 04:12:02 +0000 (05:12 +0100)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 12 Apr 2018 22:25:13 +0000 (00:25 +0200)
commitb9fcbe61129109e1c576497adfb74fd7e61d53a0
tree6ff9c31b09901ef744d5e15327982c358c39c742
parente8c3f34eddc79c8e90200410c495ac07c6647638
Introduce XLAT_STYLE_DEFAULT

This will be needed later, with the introduction of user-configurable
xlat style setting (stored in xlat_verbosity variable).

* defs.h (XLAT_STYLE_VERBOSITY_MASK): New macro constant.
(enum xlat_style) <XLAT_STYLE_DEFAULT>: New enumeration entity.
(xlat_verbosity): New external declaration.
(printxvals, printxval_searchn, printxval_search_ex, sprintxval,
sprintflags, printflags64): Use XLAT_STYLE_DEFAULT instead of
XLAT_STYLE_ABBREV.
* strace.c (xlat_verbosity): New variable.
* xlat.c (get_xlat_style): New function.
(printxvals_ex, sprintxval_ex, printxval_searchn_ex, sprintflags_ex,
printflags_ex): Use it.
defs.h
strace.c
xlat.c