summaryrefslogtreecommitdiff
path: root/libbb/verror_msg.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-09-22 14:53:41 +0000
committerDenis Vlasenko2006-09-22 14:53:41 +0000
commit27ee7ba95e9735e34ca99566686ed16f6f924158 (patch)
tree786bc190746590e1d6f0c8319bb774152eeb7d07 /libbb/verror_msg.c
parent099efbf99e2cedfb1d0edf10c9447297554cf584 (diff)
downloadbusybox-27ee7ba95e9735e34ca99566686ed16f6f924158.zip
busybox-27ee7ba95e9735e34ca99566686ed16f6f924158.tar.gz
losetup: getopt_ulflags'ification + small fix for perror_nomsg
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r--libbb/verror_msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index 557b329..e670d40 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -27,7 +27,9 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr)
if (!strerr)
fputs(msg_eol, stderr);
else
- fprintf(stderr, ": %s%s", strerr, msg_eol);
+ fprintf(stderr, "%s%s%s",
+ s ? ": " : "",
+ strerr, msg_eol);
}
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) {
if (!strerr)