From: Eugene Syromyatnikov Date: Wed, 4 Apr 2018 11:28:51 +0000 (+0200) Subject: Move xlat_verbose and xlat_format from xlat.c to defs.h X-Git-Tag: v4.23~286 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaabf55ad2c3eb153a99495797671a0b505d54d2;p=strace Move xlat_verbose and xlat_format from xlat.c to defs.h As it will be used elsewhere. * xlat.c (xlat_verbose, xlat_format): Move... * defs.h: ...here. --- diff --git a/defs.h b/defs.h index 7263a839..b2d683db 100644 --- a/defs.h +++ b/defs.h @@ -595,6 +595,9 @@ extern void printaddr(kernel_ulong_t addr); #define XLAT_STYLE_FORMAT_SHIFT 2 #define XLAT_STYLE_FORMAT_MASK (3 << XLAT_STYLE_FORMAT_SHIFT) +#define xlat_verbose(style_) ((style_) & XLAT_STYLE_VERBOSITY_MASK) +#define xlat_format(style_) ((style_) & XLAT_STYLE_FORMAT_MASK) + enum xlat_style { /** * Special value that is used for passing to *print{xval,flags}*_ex diff --git a/xlat.c b/xlat.c index 247bff82..2156b178 100644 --- a/xlat.c +++ b/xlat.c @@ -33,9 +33,6 @@ #include "xstring.h" #include -#define xlat_verbose(style_) ((style_) & XLAT_STYLE_VERBOSITY_MASK) -#define xlat_format(style_) ((style_) & XLAT_STYLE_FORMAT_MASK) - static inline enum xlat_style get_xlat_style(enum xlat_style style) {