Introduce printflags_long and printxval_long

* defs.h (printflags_long, printxval_long): New static inline functions.
This commit is contained in:
Дмитрий Левин 2016-05-16 22:44:50 +00:00
parent f77ca9ca71
commit 77ab8dd0bd

12
defs.h
View File

@ -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.