• Linus Torvalds's avatar
    Merge tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · d8763154
    Linus Torvalds authored
    Pull printk updates from Petr Mladek:
    
     - Refactor printk code for formatting messages that are shown on
       consoles. This is a preparatory step for introducing atomic consoles
       which could not share the global buffers
    
     - Prevent memory leak when removing printk index in debugfs
    
     - Dump also the newest printk message by the sample gdbmacro
    
     - Fix a compiler warning
    
    * tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
      printf: fix errname.c list
      kernel/printk/index.c: fix memory leak with using debugfs_lookup()
      printk: Use scnprintf() to print the message about the dropped messages on a console
      printk: adjust string limit macros
      printk: use printk_buffers for devkmsg
      printk: introduce console_prepend_dropped() for dropped messages
      printk: introduce printk_get_next_message() and printk_message
      printk: introduce struct printk_buffers
      console: Document struct console
      console: Use BIT() macros for @flags values
      printk: move size limit macros into internal.h
      docs: gdbmacros: print newest record
    d8763154
printk.c 110 KB