All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:_r8 69/70] include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int'
@ 2025-03-12  6:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-12  6:21 UTC (permalink / raw)
  To: Jim Cromie, Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git _r8
head:   d2e2e629f0a887e71446afa03ead92dc5a4af57c
commit: 76d7ff040dcb70c93e714eb0e2ace87f220ec091 [69/70] dyndbg: print multiple headers (WIP,WAG)
config: i386-buildonly-randconfig-003-20250312 (https://download.01.org/0day-ci/archive/20250312/202503121414.O6EdHiTp-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250312/202503121414.O6EdHiTp-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503121414.O6EdHiTp-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:31,
                    from lib/dynamic_debug.c:16:
   lib/dynamic_debug.c: In function 'dynamic_debug_init':
>> include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:473:25: note: in definition of macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:574:9: note: in expansion of macro 'printk'
     574 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO       KERN_SOH "6"    /* informational */
         |                         ^~~~~~~~
   include/linux/printk.h:574:16: note: in expansion of macro 'KERN_INFO'
     574 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~
   lib/dynamic_debug.c:138:17: note: in expansion of macro 'pr_info'
     138 |                 pr_info(fmt, ##__VA_ARGS__);                    \
         |                 ^~~~~~~
   lib/dynamic_debug.c:141:33: note: in expansion of macro 'vnpr_info'
     141 | #define vpr_info(fmt, ...)      vnpr_info(1, fmt, ##__VA_ARGS__)
         |                                 ^~~~~~~~~
   lib/dynamic_debug.c:1751:17: note: in expansion of macro 'vpr_info'
    1751 |                 vpr_info("%ld header(s) found, format: %s\n",
         |                 ^~~~~~~~


vim +5 include/linux/kern_levels.h

314ba3520e513a7 Joe Perches 2012-07-30  4  
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII	'\001'
04d2c8c83d0e3ac Joe Perches 2012-07-30  7  

:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-12  6:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12  6:21 [jimc:_r8 69/70] include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.