From: Dmitry V. Levin Date: Mon, 16 May 2016 22:44:50 +0000 (+0000) Subject: Introduce printflags_long and printxval_long X-Git-Tag: v4.12~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77ab8dd0bd90b3acb223d5eda6bdc281bd128273;p=strace Introduce printflags_long and printxval_long * defs.h (printflags_long, printxval_long): New static inline functions. --- diff --git a/defs.h b/defs.h index c164d930..41e3c438 100644 --- a/defs.h +++ b/defs.h @@ -695,6 +695,12 @@ printflags(const struct xlat *x, unsigned int flags, const char *dflt) return printflags64(x, flags, dflt); } +static inline int +printflags_long(const struct xlat *x, unsigned long flags, const char *dflt) +{ + return printflags64(x, flags, dflt); +} + static inline void printxval64(const struct xlat *x, const uint64_t val, const char *dflt) { @@ -707,6 +713,12 @@ printxval(const struct xlat *x, const unsigned int val, const char *dflt) printxvals(val, dflt, x, NULL); } +static inline void +printxval_long(const struct xlat *x, const unsigned long val, const char *dflt) +{ + printxvals(val, dflt, x, NULL); +} + /* Strace log generation machinery. * * printing_tcp: tcb which has incomplete line being printed right now.