Robert Marko 458cafd0d0 generic: routerbootpart: fix compilation on 64-bit
Trying to compile routerbootpart parsers on 64-bit platforms will fail:
drivers/mtd/parsers/routerbootpart.c: In function 'routerboot_find_dynparts':
./include/linux/kern_levels.h:5:25: error: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
./include/linux/printk.h:427:25: note: in definition of macro 'printk_index_wrap'
  427 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
./include/linux/printk.h:498:9: note: in expansion of macro 'printk'
  498 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |         ^~~~~~
./include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
   11 | #define KERN_ERR        KERN_SOH "3"    /* error conditions */
      |                         ^~~~~~~~
./include/linux/printk.h:498:16: note: in expansion of macro 'KERN_ERR'
  498 |         printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
      |                ^~~~~~~~
drivers/mtd/parsers/routerbootpart.c:170:25: note: in expansion of macro 'pr_err'
  170 |                         pr_err("%s: mtd_read error while parsing (offset: 0x%X): %d\n",

So, lets simply add the length modifier 'z' to fix compilation.

Link: https://github.com/openwrt/openwrt/pull/15640
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-06 11:45:03 +02:00
..
2024-06-05 09:34:06 +02:00
2024-03-29 09:58:45 +01:00
2024-06-03 17:57:54 +02:00
2024-04-30 20:18:15 +02:00
2024-05-29 17:56:28 +02:00
2024-05-19 22:06:11 +02:00
2024-03-24 21:19:10 +01:00
2024-05-04 14:14:16 +08:00
2024-06-02 22:43:46 +02:00
2024-04-25 14:33:22 +02:00
2024-04-16 23:11:25 +02:00
2024-02-13 19:05:48 +01:00
2024-04-18 00:30:03 +03:00
2024-05-09 10:43:37 +02:00
2024-04-30 11:02:48 +02:00
2024-06-02 17:56:28 +02:00
2024-03-23 21:38:00 +01:00
2024-05-31 11:25:48 +02:00
2024-05-01 10:26:41 +02:00