git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7691a6
)
tools: fdtgrep: Use unsigned chars for arrays
author
Samuel Dionne-Riel
<samuel@dionne-riel.com>
Thu, 11 Feb 2021 00:43:09 +0000
(19:43 -0500)
committer
Simon Glass
<sjg@chromium.org>
Mon, 22 Mar 2021 06:23:26 +0000
(19:23 +1300)
Otherwise, values over 127 end up prefixed with ffffff.
Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/fdtgrep.c
patch
|
blob
|
history
diff --git
a/tools/fdtgrep.c
b/tools/fdtgrep.c
index
e4112b8
..
db51246
100644
(file)
--- a/
tools/fdtgrep.c
+++ b/
tools/fdtgrep.c
@@
-213,7
+213,7
@@
static void utilfdt_print_data(const char *data, int len)
} else {
printf(" = [");
for (i = 0; i < len; i++)
- printf("%02x%s", *p++, i < len - 1 ? " " : "");
+ printf("%02x%s",
(unsigned char)
*p++, i < len - 1 ? " " : "");
printf("]");
}
}