]> granicus.if.org Git - strace/commitdiff
Introduce printflags_long and printxval_long
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:44:50 +0000 (22:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:44:50 +0000 (22:44 +0000)
* defs.h (printflags_long, printxval_long): New static inline functions.

defs.h

diff --git a/defs.h b/defs.h
index c164d93088a13ab857f97926111197d63bd9d8f1..41e3c438ae8634dda5b9fff0d74238bcf7972db2 100644 (file)
--- 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.