svn commit: r244969 - head/tools/tools/ath/ath_prom_read

Adrian Chadd adrian at FreeBSD.org
Wed Jan 2 18:33:49 UTC 2013


Author: adrian
Date: Wed Jan  2 18:33:48 2013
New Revision: 244969
URL: http://svnweb.freebsd.org/changeset/base/244969

Log:
  Add missing err() format string.

Modified:
  head/tools/tools/ath/ath_prom_read/ath_prom_read.c

Modified: head/tools/tools/ath/ath_prom_read/ath_prom_read.c
==============================================================================
--- head/tools/tools/ath/ath_prom_read/ath_prom_read.c	Wed Jan  2 18:29:54 2013	(r244968)
+++ head/tools/tools/ath/ath_prom_read/ath_prom_read.c	Wed Jan  2 18:33:48 2013	(r244969)
@@ -123,7 +123,7 @@ main(int argc, char *argv[])
 	atd.ad_out_data = (caddr_t) eep;
 	atd.ad_out_size = sizeof(eep);
 	if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
-		err(1, atd.ad_name);
+		err(1, "ioctl: %s", atd.ad_name);
 
 	/* Dump file? Then just write to it */
 	if (dumpname != NULL) {


More information about the svn-src-all mailing list