From: Dmitry V. Levin Date: Sat, 14 May 2016 21:55:35 +0000 (+0000) Subject: Rename xlookup64 to xlookup X-Git-Tag: v4.12~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0db59b97bfa6820bbb5706832ab63d04a8c2659;p=strace Rename xlookup64 to xlookup * defs.h (xlookup): Remove. (xlookup64): Rename to xlookup. * util.c (xlookup64): Rename to xlookup. --- diff --git a/defs.h b/defs.h index 04dcb83c..1e2afa76 100644 --- a/defs.h +++ b/defs.h @@ -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. diff --git a/util.c b/util.c index b0757a83..f197d094 100644 --- a/util.c +++ b/util.c @@ -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)