* [PATCH] unbreak vwarn: print ": " before errno message
@ 2013-08-20 1:53 Strake
2013-08-21 4:51 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Strake @ 2013-08-20 1:53 UTC (permalink / raw)
To: musl
From dde16994da5bd333c9ae1f38cc9940a079212e8b Mon Sep 17 00:00:00 2001
From: Strake <strake888@gmail.com>
Date: Mon, 19 Aug 2013 20:56:46 -0500
Subject: [PATCH] unbreak vwarn: print ": " before errno message
---
src/legacy/err.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/legacy/err.c b/src/legacy/err.c
index 7b167b3..0d6ab52 100644
--- a/src/legacy/err.c
+++ b/src/legacy/err.c
@@ -8,8 +8,11 @@ extern char *__progname;
void vwarn(const char *fmt, va_list ap)
{
fprintf (stderr, "%s: ", __progname);
- if (fmt) vfprintf(stderr, fmt, ap);
- perror("");
+ if (fmt) {
+ vfprintf(stderr, fmt, ap);
+ fputs (": ", stderr);
+ }
+ perror(0);
}
void vwarnx(const char *fmt, va_list ap)
--
1.7.11.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] unbreak vwarn: print ": " before errno message
2013-08-20 1:53 [PATCH] unbreak vwarn: print ": " before errno message Strake
@ 2013-08-21 4:51 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2013-08-21 4:51 UTC (permalink / raw)
To: musl
On Mon, Aug 19, 2013 at 08:53:13PM -0500, Strake wrote:
> >From dde16994da5bd333c9ae1f38cc9940a079212e8b Mon Sep 17 00:00:00 2001
> From: Strake <strake888@gmail.com>
> Date: Mon, 19 Aug 2013 20:56:46 -0500
> Subject: [PATCH] unbreak vwarn: print ": " before errno message
Thanks. Committed.
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-21 4:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-20 1:53 [PATCH] unbreak vwarn: print ": " before errno message Strake
2013-08-21 4:51 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).