Rename xlookup64 to xlookup

* defs.h (xlookup): Remove.
(xlookup64): Rename to xlookup.
* util.c (xlookup64): Rename to xlookup.
This commit is contained in:
Дмитрий Левин 2016-05-14 21:55:35 +00:00
parent 9134aab407
commit c0db59b97b
2 changed files with 2 additions and 8 deletions

8
defs.h
View File

@ -542,7 +542,7 @@ extern void pathtrace_select(const char *);
extern int pathtrace_match(struct tcb *);
extern int getfdpath(struct tcb *, int, char *, unsigned);
extern const char *xlookup64(const struct xlat *, const uint64_t);
extern const char *xlookup(const struct xlat *, const uint64_t);
extern const char *xlat_search(const struct xlat *, const size_t, const uint64_t);
extern unsigned long get_pagesize(void);
@ -713,12 +713,6 @@ printxval(const struct xlat *x, const unsigned int val, const char *dflt)
printxvals(val, dflt, x, NULL);
}
static inline const char *
xlookup(const struct xlat *x, const unsigned int val)
{
return xlookup64(x, val);
}
/* Strace log generation machinery.
*
* printing_tcp: tcb which has incomplete line being printed right now.

2
util.c
View File

@ -121,7 +121,7 @@ tv_mul(struct timeval *tv, const struct timeval *a, int n)
}
const char *
xlookup64(const struct xlat *xlat, const uint64_t val)
xlookup(const struct xlat *xlat, const uint64_t val)
{
for (; xlat->str != NULL; xlat++)
if (xlat->val == val)