From: Eugene Syromyatnikov Date: Sun, 19 Aug 2018 13:19:21 +0000 (+0200) Subject: defs.h: add style argument to printxval_search_ex macro X-Git-Tag: v4.25~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8d95392ad1d47cc98c54b3417361d023317565b;p=strace defs.h: add style argument to printxval_search_ex macro It is identical to printxval_search otherwise. * defs.h (printxval_search_ex): Add style argument. --- diff --git a/defs.h b/defs.h index 2c19dd3a..5097e0d9 100644 --- a/defs.h +++ b/defs.h @@ -693,9 +693,9 @@ printxval_searchn(const struct xlat *xlat, size_t xlat_size, uint64_t val, */ #define printxval_search(xlat__, val__, dflt__) \ printxval_searchn(xlat__, ARRAY_SIZE(xlat__) - 1, val__, dflt__) -#define printxval_search_ex(xlat__, val__, dflt__) \ +#define printxval_search_ex(xlat__, val__, dflt__, style__) \ printxval_searchn_ex((xlat__), ARRAY_SIZE(xlat__) - 1, (val__), \ - (dflt__), XLAT_STYLE_DEFAULT) + (dflt__), (style__)) extern int printxval_indexn_ex(const struct xlat *, size_t xlat_size, uint64_t val, const char *dflt, enum xlat_style);