1
0
Files
kernel-49/net/bridge/br_stp_bpdu_log.c
Sergey Korolev 5b4453b74e br_stp_bpdu_log.c: fix a compilation warning
In file included from ./include/linux/printk.h:6,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/skbuff.h:17,
                 from net/bridge/br_stp_bpdu_log.c:12:
net/bridge/br_stp_bpdu_log.c: In function 'stp_print_mstp_bpdu':
./include/linux/kern_levels.h:4:18: warning: format '%u' expects argument of
type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
    4 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
      |                  ^~~~~~
./include/linux/kern_levels.h:23:19: note: in expansion of macro 'KERN_SOH'
   23 | #define KERN_CONT KERN_SOH "c"
      |                   ^~~~~~~~
./include/linux/printk.h:291:9: note: in expansion of macro 'KERN_CONT'
  291 |  printk(KERN_CONT fmt, ##__VA_ARGS__)
      |         ^~~~~~~~~
net/bridge/br_stp_bpdu_log.c:281:2: note: in expansion of macro 'pr_cont'
  281 |  pr_cont(", CIST bridge-id %s.%04x, length %u\n",
      |  ^~~~~~~
2021-05-21 18:03:17 +03:00

12 KiB