From 9de4b9861edd35b3e7e0c65a72c7329abbcd784f Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 2 Jan 2013 18:29:54 +0000 Subject: [PATCH] Fix missing err() format string. --- tools/tools/ath/athsurvey/athsurvey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools/ath/athsurvey/athsurvey.c b/tools/tools/ath/athsurvey/athsurvey.c index e0a4cf30e46..df2ae4d4dc8 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);