mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
Merge tag 'bootconfig-fixes-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull bootconfig fix from Masami Hiramatsu: - Fix wrong format specifier: use '%u' for unsigned int * tag 'bootconfig-fixes-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tools/bootconfig: Fix the wrong format specifier
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user