aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /runit
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
downloadbusybox-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz
busybox-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'runit')
-rw-r--r--runit/sv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runit/sv.c b/runit/sv.c
index 406dc6fc8..7283bbf7d 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -179,7 +179,7 @@ static void out(const char *p, const char *m1)
if (errno) {
printf(": %s", strerror(errno));
}
- puts(""); /* will also flush the output */
+ bb_putchar('\n'); /* will also flush the output */
}
#define WARN "warning: "
@@ -300,7 +300,7 @@ static int status(const char *unused)
printf("; ");
svstatus_print("log");
}
- puts(""); /* will also flush the output */
+ bb_putchar('\n'); /* will also flush the output */
return r;
}
@@ -372,7 +372,7 @@ static int check(const char *a)
}
printf(OK);
svstatus_print(*service);
- puts(""); /* will also flush the output */
+ bb_putchar('\n'); /* will also flush the output */
return 1;
}
@@ -571,7 +571,7 @@ int sv_main(int argc, char **argv)
svstatus_print(*service);
++rc;
}
- puts(""); /* will also flush the output */
+ bb_putchar('\n'); /* will also flush the output */
if (kll)
control("k");
nullify_service: