From 27ee7ba95e9735e34ca99566686ed16f6f924158 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 22 Sep 2006 14:53:41 +0000 Subject: losetup: getopt_ulflags'ification + small fix for perror_nomsg --- libbb/verror_msg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbb/verror_msg.c') 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) -- cgit v1.2.3