summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-01-02 18:29:54 +0000
committeradrian <adrian@FreeBSD.org>2013-01-02 18:29:54 +0000
commit19180edbd926d0cd9bf244f67907af47ccd17b34 (patch)
tree82e9908bc627c2c20f00f799e3425d4395357484 /tools
parent48278ccb6093dcd49c14aaf99c446dc061123ab6 (diff)
downloadFreeBSD-src-19180edbd926d0cd9bf244f67907af47ccd17b34.zip
FreeBSD-src-19180edbd926d0cd9bf244f67907af47ccd17b34.tar.gz
Fix missing err() format string.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athsurvey/athsurvey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/ath/athsurvey/athsurvey.c b/tools/tools/ath/athsurvey/athsurvey.c
index e0a4cf3..df2ae4d 100644
--- a/tools/tools/ath/athsurvey/athsurvey.c
+++ b/tools/tools/ath/athsurvey/athsurvey.c
@@ -66,7 +66,7 @@ get_survey_stats(int s, const char *ifname, HAL_CHANNEL_SURVEY *hs)
strncpy(atd.ad_name, ifname, sizeof(atd.ad_name));
if (ioctl(s, SIOCGATHDIAG, &atd) < 0) {
- err(1, atd.ad_name);
+ err(1, "ioctl: %s", atd.ad_name);
return (0);
}
return (1);
OpenPOWER on IntegriCloud