projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd294d
)
tools/bootconfig: Fix the wrong format specifier
author
Luo Yifan
<luoyifan@cmss.chinamobile.com>
Tue, 28 Jan 2025 14:27:01 +0000
(23:27 +0900)
committer
Masami Hiramatsu (Google)
<mhiramat@kernel.org>
Tue, 28 Jan 2025 14:27:01 +0000
(23:27 +0900)
Use '%u' instead of '%d' for unsigned int.
Link:
https://lore.kernel.org/all/20241105011048.201629-1-luoyifan@cmss.chinamobile.com/
Fixes:
973780011106
("tools/bootconfig: Suppress non-error messages")
Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/bootconfig/main.c
patch
|
blob
|
history
diff --git
a/tools/bootconfig/main.c
b/tools/bootconfig/main.c
index
156b62a
..
8a48cc2
100644
(file)
--- a/
tools/bootconfig/main.c
+++ b/
tools/bootconfig/main.c
@@
-226,7
+226,7
@@
static int load_xbc_from_initrd(int fd, char **buf)
/* Wrong Checksum */
rcsum = xbc_calc_checksum(*buf, size);
if (csum != rcsum) {
- pr_err("checksum error: %
d != %d
\n", csum, rcsum);
+ pr_err("checksum error: %
u != %u
\n", csum, rcsum);
return -EINVAL;
}
@@
-395,7
+395,7
@@
static int apply_xbc(const char *path, const char *xbc_path)
xbc_get_info(&ret, NULL);
printf("\tNumber of nodes: %d\n", ret);
printf("\tSize: %u bytes\n", (unsigned int)size);
- printf("\tChecksum: %
d
\n", (unsigned int)csum);
+ printf("\tChecksum: %
u
\n", (unsigned int)csum);
/* TODO: Check the options by schema */
xbc_exit();