diff options
author | alfred <alfred@FreeBSD.org> | 2014-12-27 01:06:19 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2014-12-27 01:06:19 +0000 |
commit | 6102c0bccbe6cb1185490040c2a1c47c90788523 (patch) | |
tree | 69a05e464fc6ce177fff75f482dff4b240a0d0a2 /contrib | |
parent | c902569071246c87a45057cfd40beb7a3ada9ff9 (diff) | |
download | FreeBSD-src-6102c0bccbe6cb1185490040c2a1c47c90788523.zip FreeBSD-src-6102c0bccbe6cb1185490040c2a1c47c90788523.tar.gz |
Output strerror from xo_warn
Reported by: bapt
Reviewed by: bapt, ngie
Differential Revision: https://reviews.freebsd.org/D1378
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libxo/libxo/libxo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/libxo/libxo/libxo.c b/contrib/libxo/libxo/libxo.c index 89adc03..2c97337 100644 --- a/contrib/libxo/libxo/libxo.c +++ b/contrib/libxo/libxo/libxo.c @@ -956,9 +956,6 @@ xo_warn_hcv (xo_handle_t *xop, int code, int check_warn, } memcpy(newfmt + plen, fmt, len); - /* Add a newline to the fmt string */ - if (!(xop->xo_flags & XOF_WARN_XML)) - newfmt[len++ + plen] = '\n'; newfmt[len + plen] = '\0'; if (xop->xo_flags & XOF_WARN_XML) { @@ -1010,6 +1007,7 @@ xo_warn_hcv (xo_handle_t *xop, int code, int check_warn, } else { vfprintf(stderr, newfmt, vap); + fprintf(stderr, ": %s\n", strerror(code)); } } |