git: kernel - Refactor the kernel message buffer code (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 2 18:41:35 PST 2015


commit 9e900855d3e64e71220a72d28da7de5e086b0c5e
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 2 18:40:21 2015 -0800

    kernel - Refactor the kernel message buffer code (2)
    
    * Fix an edge case, the sysctl was not working properly when the msgbuf
      was completely empty.  Generate a single newline output.
    
    * Also if dmesg gets a msgbuf size of 0, allocate at least 1 byte to
      avoid a malloc failure.

Summary of changes:
 sbin/dmesg/dmesg.c  |  3 +++
 sys/kern/subr_prf.c | 15 +++++++++++++++
 2 files changed, 18 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e900855d3e64e71220a72d28da7de5e086b0c5e


-- 
DragonFly BSD source repository



More information about the Commits mailing list