[PATCH 1/3] dmesg: handle multi-char log levels

Peter Korsgaard jacmet at sunsite.dk
Sat Jan 5 22:01:21 UTC 2013


>>>>> "Mike" == Mike Frysinger <vapier at gentoo.org> writes:

Hi,

 Mike> doesn't seem to work

 Mike> allnoconfig + dmesg + dmesg pretty enabled

 Mike> $ ./busybox dmesg
 >> Peer 86.165.245.161:29833/59757 unexpectedly shrunk window 2138950115:2138952928 (repaired)
 >> Peer 86.165.245.161:29833/59757 unexpectedly shrunk window 2138950115:2138952928 (repaired)
 >> Peer 86.165.245.161:29833/59757 unexpectedly shrunk window 2138950115:2138952928 (repaired)

 Mike> $ strace -ewrite,syslog ./busybox dmesg >/dev/null 
 Mike> syslog(SYSLOG_ACTION_SIZE_BUFFER, 0, 0) = 131072
 Mike> syslog(SYSLOG_ACTION_READ_ALL, "<7>Peer 86.165.245.161:29833/597"..., 131072) = 285
 Mike> write(1, ">Peer 86.165.245.161:29833/59757"..., 279) = 279

 Mike> maybe the buf[++in] should be buf[in++]

Argh, indeed. So much for last minute fixups. Thanks for the review,
will fixup and resend.

-- 
Bye, Peter Korsgaard


More information about the busybox mailing list