Date: Wed, 15 Jul 2015 06:14:05 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285595 - head/usr.bin/ministat Message-ID: <201507150614.t6F6E5rn092577@svnmir.geo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmg Date: Wed Jul 15 06:14:04 2015 New Revision: 285595 URL: https://svnweb.freebsd.org/changeset/base/285595 Log: fix error message... errx since errno may not be set (if we didn't parse the full field), and err and errx add their own newline at the end... Sponsored by: Netflix, Inc. Modified: head/usr.bin/ministat/ministat.c Modified: head/usr.bin/ministat/ministat.c ============================================================================== --- head/usr.bin/ministat/ministat.c Wed Jul 15 02:23:55 2015 (r285594) +++ head/usr.bin/ministat/ministat.c Wed Jul 15 06:14:04 2015 (r285595) @@ -487,7 +487,7 @@ ReadSet(const char *n, int column, const d = strtod(t, &p); if (p != NULL && *p != '\0') - err(2, "Invalid data on line %d in %s\n", line, n); + errx(2, "Invalid data on line %d in %s", line, n); if (*buf != '\0') AddPoint(s, d); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507150614.t6F6E5rn092577>