defs.h: add shorthands for printing xval with XLAT_STYLE_FMT_U
* defs.h (printxval_u, printxval64_u): New function, a shorthand for printxvals_ex with a single xlat and XLAT_STYLE_FMT_U as a style.
This commit is contained in:
parent
039717c2e6
commit
d451b0e283
12
defs.h
12
defs.h
@ -854,6 +854,18 @@ printxval(const struct xlat *x, const unsigned int val, const char *dflt)
|
||||
return printxvals(val, dflt, x, NULL);
|
||||
}
|
||||
|
||||
static inline int
|
||||
printxval64_u(const struct xlat *x, const uint64_t val, const char *dflt)
|
||||
{
|
||||
return printxvals_ex(val, dflt, XLAT_STYLE_FMT_U, x, NULL);
|
||||
}
|
||||
|
||||
static inline int
|
||||
printxval_u(const struct xlat *x, const unsigned int val, const char *dflt)
|
||||
{
|
||||
return printxvals_ex(val, dflt, XLAT_STYLE_FMT_U, x, NULL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
tprint_iov(struct tcb *tcp, kernel_ulong_t len, kernel_ulong_t addr,
|
||||
enum iov_decode decode_iov)
|
||||
|
Loading…
Reference in New Issue
Block a user