Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2014 07:49:12 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262831 - head/tools/tools/mwl/mwlstats
Message-ID:  <201403060749.s267nCbG064606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Mar  6 07:49:12 2014
New Revision: 262831
URL: http://svnweb.freebsd.org/changeset/base/262831

Log:
  Fix compiler warning. Thanks clang!

Modified:
  head/tools/tools/mwl/mwlstats/mwlstats.c

Modified: head/tools/tools/mwl/mwlstats/mwlstats.c
==============================================================================
--- head/tools/tools/mwl/mwlstats/mwlstats.c	Thu Mar  6 07:48:43 2014	(r262830)
+++ head/tools/tools/mwl/mwlstats/mwlstats.c	Thu Mar  6 07:49:12 2014	(r262831)
@@ -261,7 +261,7 @@ mwl_collect(struct mwlstatfoo_p *wf, str
 {
 	wf->ifr.ifr_data = (caddr_t) stats;
 	if (ioctl(wf->s, SIOCGMVSTATS, &wf->ifr) < 0)
-		err(1, wf->ifr.ifr_name);
+		err(1, "%s: ioctl: %s", __func__, wf->ifr.ifr_name);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403060749.s267nCbG064606>