Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   msaitoh
Date:           Tue Nov 24 17:35:55 UTC 2026

Modified Files:
        src/sbin/dmesg: dmesg.8 dmesg.c
        src/sys/kern: subr_log.c
        src/sys/sys: sysctl.h

Log Message:
dmesg: Add function to clear the dmesg buffer for debugging purpose

 - Add new sysctl "kern.msgbuf_clear" to clear the buffer. Same as FreeBSD.

 - Add -C and -c option to dmesg. It clears the dmesg buffer.

   -C   Clear the dmesg buffer. Same as Linux
   -c   Print the dmesg buffer and then clear it. Same as Linux and FreeBSD

First written by hikaru@ and modified by me.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sbin/dmesg/dmesg.8
cvs rdiff -u -r1.52 -r1.53 src/sbin/dmesg/dmesg.c
cvs rdiff -u -r1.68 -r1.69 src/sys/kern/subr_log.c
cvs rdiff -u -r1.242 -r1.243 src/sys/sys/sysctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index