projects
/
strace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0ae0b3
)
xlat_idx: do not issue warnings for holes in indices
author
Dmitry V. Levin
<ldv@altlinux.org>
Mon, 24 Dec 2018 10:19:24 +0000
(10:19 +0000)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Mon, 24 Dec 2018 10:19:24 +0000
(10:19 +0000)
Some xlat indices like evdev_abs have holes, avoid issuing warnings
about them.
* xlat.c (xlat_idx): Do not issue warnings for holes in the index.
xlat.c
patch
|
blob
|
history
diff --git
a/xlat.c
b/xlat.c
index 16bfb94d090925fd8546dc052274d0d8c4ebd290..62245f9cb2900e47e47394abfef63b135711516e 100644
(file)
--- a/
xlat.c
+++ b/
xlat.c
@@
-249,6
+249,9
@@
xlat_idx(const struct xlat *xlat, size_t nmemb, uint64_t val)
return NULL;
if (val != pos[val].val) {
+ if (pos[val].val == 0)
+ return NULL; /* a hole in the index */
+
error_func_msg("Unexpected xlat value %" PRIu64
" at index %" PRIu64,
pos[val].val, val);