diff options
author | adrian <adrian@FreeBSD.org> | 2013-06-14 08:11:45 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-06-14 08:11:45 +0000 |
commit | d6a6434a1ee22622d5420b5cb00dc1665e60f5f3 (patch) | |
tree | 68a06d85f30b0e166cc2726f8983e1530c66500c | |
parent | b0151405942c8e86c2b08eb58626830bc5b0f0ce (diff) | |
download | FreeBSD-src-d6a6434a1ee22622d5420b5cb00dc1665e60f5f3.zip FreeBSD-src-d6a6434a1ee22622d5420b5cb00dc1665e60f5f3.tar.gz |
Add missing formatting strings.
Thanks to: clang
-rw-r--r-- | tools/tools/ath/athspectral/athspectral.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/tools/ath/athspectral/athspectral.c b/tools/tools/ath/athspectral/athspectral.c index 7bdfa2b..1ec9085 100644 --- a/tools/tools/ath/athspectral/athspectral.c +++ b/tools/tools/ath/athspectral/athspectral.c @@ -67,7 +67,7 @@ spectral_opendev(struct spectralhandler *spectral, const char *devid) spectral->atd.ad_out_data = (caddr_t) &revs; spectral->atd.ad_out_size = sizeof(revs); if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) { - warn(spectral->atd.ad_name); + warn("%s", spectral->atd.ad_name); return 0; } spectral->ah_devid = revs.ah_devid; @@ -116,7 +116,7 @@ spectralset(struct spectralhandler *spectral, int op, u_int32_t param) spectral->atd.ad_in_data = (caddr_t) &pe; spectral->atd.ad_in_size = sizeof(HAL_SPECTRAL_PARAM); if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) - err(1, spectral->atd.ad_name); + err(1, "%s", spectral->atd.ad_name); } static void @@ -133,7 +133,7 @@ spectral_get(struct spectralhandler *spectral) spectral->atd.ad_out_size = sizeof(pe); if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) - err(1, spectral->atd.ad_name); + err(1, "%s", spectral->atd.ad_name); printf("Spectral parameters (raw):\n"); printf(" ss_enabled: %d\n", pe.ss_enabled); @@ -163,7 +163,7 @@ spectral_start(struct spectralhandler *spectral) spectral->atd.ad_out_size = sizeof(pe); if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) - err(1, spectral->atd.ad_name); + err(1, "%s", spectral->atd.ad_name); } static void @@ -184,7 +184,7 @@ spectral_stop(struct spectralhandler *spectral) spectral->atd.ad_out_size = sizeof(pe); if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) - err(1, spectral->atd.ad_name); + err(1, "%s", spectral->atd.ad_name); } static void @@ -207,7 +207,7 @@ spectral_enable_at_reset(struct spectralhandler *spectral, int val) printf("%s: val=%d\n", __func__, v); if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) - err(1, spectral->atd.ad_name); + err(1, "%s", spectral->atd.ad_name); } static int |