]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge tag 'printk-for-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/printk...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Apr 2026 22:42:18 +0000 (15:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Apr 2026 22:42:18 +0000 (15:42 -0700)
Pull printk updates from Petr Mladek:

 - Fix printk ring buffer initialization and sanity checks

 - Workaround printf kunit test compilation with gcc < 12.1

 - Add IPv6 address printf format tests

 - Misc code and documentation cleanup

* tag 'printk-for-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
  printf: Compile the kunit test with DISABLE_BRANCH_PROFILING DISABLE_BRANCH_PROFILING
  lib/vsprintf: use bool for local decode variable
  lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug()
  printk: ringbuffer: fix errors in comments
  printk_ringbuffer: Add sanity check for 0-size data
  printk_ringbuffer: Fix get_data() size sanity check
  printf: add IPv6 address format tests
  printk: Fix _DESCS_COUNT type for 64-bit systems

1  2 
include/linux/printk.h

index 54e3c621fec37b83dd117d2b8daa495a28c471c3,1a33b813808cabde784450a3c675edbe82f57766..f594c1266bfd411f2238b45374e8a71222f0407c
@@@ -801,21 -801,9 +801,22 @@@ static inline void print_hex_dump_debug
  }
  #endif
  
 +#if defined(DEBUG)
 +#define print_hex_dump_devel(prefix_str, prefix_type, rowsize,                \
 +                           groupsize, buf, len, ascii)                \
 +      print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize,    \
 +                     groupsize, buf, len, ascii)
 +#else
 +static inline void print_hex_dump_devel(const char *prefix_str, int prefix_type,
 +                                      int rowsize, int groupsize,
 +                                      const void *buf, size_t len, bool ascii)
 +{
 +}
 +#endif
 +
  /**
-  * print_hex_dump_bytes - shorthand form of print_hex_dump() with default params
+  * print_hex_dump_bytes - shorthand form of print_hex_dump_debug() with default
+  *                        params
   * @prefix_str: string to prefix each line with;
   *  caller supplies trailing spaces for alignment if desired
   * @prefix_type: controls whether prefix of an offset, address, or none