diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 14:20:47 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 14:20:47 +0400 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /util-linux/dmesg.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r-- | util-linux/dmesg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 909cbd24e..3aa99e58f 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c @@ -38,12 +38,12 @@ int dmesg_main(int argc, char **argv) for (in = 0; in<len;) { if (last == '\n' && buf[in] == '<') in += 3; - else putchar(last = buf[in++]); + else bb_putchar(last = buf[in++]); } - if (last != '\n') putchar('\n'); + if (last != '\n') bb_putchar('\n'); } else { write(1,buf,len); - if (len && buf[len-1]!='\n') putchar('\n'); + if (len && buf[len-1]!='\n') bb_putchar('\n'); } if (ENABLE_FEATURE_CLEAN_UP) free(buf); |