• Andrew Morton's avatar
    [PATCH] report size of printk buffer · 70d5032e
    Andrew Morton authored
    From: <Andries.Brouwer@cwi.nl>
    
    In the old days the printk log buffer had a constant size, and dmesg asked
    for the 4096, later 8192, later 16384 bytes in there.  These days the
    printk log buffer has variable size, and it is not easy for dmesg to do the
    right thing, especially when doing a "read and clear".  The patch below
    adds a syslog subfuntion that reports the buffer size.
    70d5032e
printk.c 21.8 KB