[Busybox][PATCH][RESEND] klogd size reduction

Tito farmatito at tiscali.it
Tue Sep 13 20:50:44 UTC 2005


Hi,
this patch reduces the size of busybox' klogd by using 
bb_getopt_ulflags and  bb_xgetlarg.
I've tested it a bit and it seems to work
correctly.
The only doubt I have is about the correct
 min and max value for the log level:
1-8 or 0-7.
So please take a look at it and let me know.
Size reduction is:
   text    data     bss     dec     hex filename
    625       0       0     625     271 sysklogd/klogd.o.orig
    596       0       0     596     254 sysklogd/klogd.o

Ciao,
Tito

PS: I've investigated about the min and max values
of the log level:

root at localhost:/dev/pts/1:/root# klogd -c 9
klogd: Invalid console logging level <9> specified.
root at localhost:/dev/pts/1:/root# klogd -c 0
klogd: Invalid console logging level <0> specified.

So the values used seem to be correct.
I think it is safe to be apply this now,
if not somebody will discover it soon ;-)

Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klogd.patch
Type: text/x-diff
Size: 1213 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050913/503d86a1/attachment.bin 


More information about the busybox mailing list