From 77ab8dd0bd90b3acb223d5eda6bdc281bd128273 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 16 May 2016 22:44:50 +0000 Subject: [PATCH] Introduce printflags_long and printxval_long * defs.h (printflags_long, printxval_long): New static inline functions. --- defs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. -- 2.40.0