From: Strake <strake888@gmail.com>
To: musl <musl@lists.openwall.com>
Subject: [PATCH] unbreak vwarn: print ": " before errno message
Date: Mon, 19 Aug 2013 20:53:13 -0500 [thread overview]
Message-ID: <CAL3m8eDRv_TzoigHUY6MSTLgVRBLtKEY03MrCTXGO6duxUz62g@mail.gmail.com> (raw)
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
next reply other threads:[~2013-08-20 1:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 1:53 Strake [this message]
2013-08-21 4:51 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL3m8eDRv_TzoigHUY6MSTLgVRBLtKEY03MrCTXGO6duxUz62g@mail.gmail.com \
--to=strake888@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).