diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-22 18:53:41 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-22 18:53:41 +0400 |
commit | 27ee7ba95e9735e34ca99566686ed16f6f924158 (patch) | |
tree | 786bc190746590e1d6f0c8319bb774152eeb7d07 /libbb/verror_msg.c | |
parent | 099efbf99e2cedfb1d0edf10c9447297554cf584 (diff) |
losetup: getopt_ulflags'ification + small fix for perror_nomsg
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r-- | libbb/verror_msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index 557b3290a..e670d40ba 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) |