truncated output in syslog with 1.4.2
Denis Vlasenko
vda.linux at googlemail.com
Mon Mar 19 13:42:37 PDT 2007
Hi Mike, Stephane,
On Monday 19 March 2007 02:49, Stephane Billiart wrote:
> On 18/03/07 ? ? 18:32, Mike Frysinger wrote:
> > anyone else seen truncated messages when using syslog/klog ? so i start up my
> > system and run syslog/klog, /var/log/messages looks like:
> > Jun 1 08:01:10 blackfin syslog.info syslogd started: BusyBox v1.4.1
> > then i restart klog and this shows up:
> > Jun 1 08:02:11 blackfin user.notice kernel: Ker
> > Jun 1 08:02:11 blackfin user.notice kernel: klo
> >
> > changing MAX_READ in sysklogd.c to like 0xFF gives me more output, but i feel
> > like that isnt the correct route :)
> > -mike
Thanks Mike for narrowing it down.
> I have reported the same problem last month with uClibc 0.9.27 (glibc is ok).
> I did not have time to narrow it down precisely but the reads in sysklogd.c
> are definitely short.
I think you built uclibc with extra small stdio buffer
or something like that -> BUFSIZ is very small (128 bytes?).
What printf("BUFSIZ=%d\n", BUFSIZ) prints, if added in syslogd.c?
Does attached modified syslogd.c work better?
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslogd.c
Type: text/x-csrc
Size: 17563 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070319/d9417728/attachment.c
More information about the busybox
mailing list