We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd294d commit f6ab738Copy full SHA for f6ab738
tools/bootconfig/main.c
@@ -226,7 +226,7 @@ static int load_xbc_from_initrd(int fd, char **buf)
226
/* Wrong Checksum */
227
rcsum = xbc_calc_checksum(*buf, size);
228
if (csum != rcsum) {
229
- pr_err("checksum error: %d != %d\n", csum, rcsum);
+ pr_err("checksum error: %u != %u\n", csum, rcsum);
230
return -EINVAL;
231
}
232
@@ -395,7 +395,7 @@ static int apply_xbc(const char *path, const char *xbc_path)
395
xbc_get_info(&ret, NULL);
396
printf("\tNumber of nodes: %d\n", ret);
397
printf("\tSize: %u bytes\n", (unsigned int)size);
398
- printf("\tChecksum: %d\n", (unsigned int)csum);
+ printf("\tChecksum: %u\n", (unsigned int)csum);
399
400
/* TODO: Check the options by schema */
401
xbc_exit();
0 commit comments