svn commit: r276273 - head/contrib/libxo/libxo

Alfred Perlstein alfred at FreeBSD.org
Sat Dec 27 01:06:21 UTC 2014


Author: alfred
Date: Sat Dec 27 01:06:19 2014
New Revision: 276273
URL: https://svnweb.freebsd.org/changeset/base/276273

Log:
  Output strerror from xo_warn
  
  Reported by: bapt
  Reviewed by: bapt, ngie
  
  Differential Revision: https://reviews.freebsd.org/D1378

Modified:
  head/contrib/libxo/libxo/libxo.c

Modified: head/contrib/libxo/libxo/libxo.c
==============================================================================
--- head/contrib/libxo/libxo/libxo.c	Sat Dec 27 00:55:14 2014	(r276272)
+++ head/contrib/libxo/libxo/libxo.c	Sat Dec 27 01:06:19 2014	(r276273)
@@ -956,9 +956,6 @@ xo_warn_hcv (xo_handle_t *xop, int code,
     }
     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,
 
     } else {
 	vfprintf(stderr, newfmt, vap);
+	fprintf(stderr, ": %s\n", strerror(code));
     }
 }
 


More information about the svn-src-head mailing list