Bootconfig fixes for v6.13:

- tools/bootconfig: Fix the wrong format specifier.
   This fixes bootconfig tool to use '%u' for unsigned int.
 -----BEGIN PGP SIGNATURE-----
 
 iQFPBAABCgA5FiEEh7BulGwFlgAOi5DV2/sHvwUrPxsFAmeY6qgbHG1hc2FtaS5o
 aXJhbWF0c3VAZ21haWwuY29tAAoJENv7B78FKz8bWuAH/Rzn4DgANeZV6UiCFcQW
 reX/f7r52IOVXDenB4C/wqdvqpEoNEq+GApG6NW5NlPdHhcYnWVPJWsTkByAtR/L
 jGUrgkvwBm+9qNlFSxi/ACj3dl3m7Zxez/41pnGFfWeMb7T4gV4L/IUSjPg+bZ/A
 J2nAeH/TFqNe0b61u6GxsM7SeJqC2wTi2ldpc+3z0PTjr9NhJvEveBX7Rb3OlQ1A
 OSZuZKjXMF0PtCct/F3X6EQrReK0BJlthjI7/vot6ag7LSapVEtE+nqFNQEHwXCl
 0yNbuPbmxwMAmw9BPJoFFv6mgT7UU1xZsBADGJN+fvqDrBDhndpFdGFToAsApmgV
 Ppc=
 =mnBh
 -----END PGP SIGNATURE-----

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
pull/1136/head
Linus Torvalds 2025-01-28 10:11:33 -08:00
commit cd45f362fc
1 changed files with 2 additions and 2 deletions

View File

@ -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();