diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2016-02-08 02:11:34 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2016-02-08 02:11:34 +0000 |
commit | 727d23e31347920ffd80aed2b82c8b6d98778be9 (patch) | |
tree | 015e0abdab99353af38921829cfb2389f600f579 /tools/tools/ath | |
parent | bce8bf5bfb829b4ce6308aa495bc7cdb7c2e18e5 (diff) | |
download | src-727d23e31347920ffd80aed2b82c8b6d98778be9.tar.gz src-727d23e31347920ffd80aed2b82c8b6d98778be9.zip |
Add a format string to the err() calls.
Notes
Notes:
svn path=/head/; revision=295390
Diffstat (limited to 'tools/tools/ath')
-rw-r--r-- | tools/tools/ath/athregs/dumpregs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tools/ath/athregs/dumpregs.c b/tools/tools/ath/athregs/dumpregs.c index 4a50726829d6..472df052c489 100644 --- a/tools/tools/ath/athregs/dumpregs.c +++ b/tools/tools/ath/athregs/dumpregs.c @@ -155,7 +155,7 @@ main(int argc, char *argv[]) atd.ad_out_data = (caddr_t) &state.revs; atd.ad_out_size = sizeof(state.revs); if (ioctl(s, SIOCGATHDIAG, &atd) < 0) - err(1, atd.ad_name); + err(1, "%s", atd.ad_name); if (ath_hal_setupregs(&atd, what) == 0) errx(-1, "no registers are known for this part " @@ -173,7 +173,7 @@ main(int argc, char *argv[]) } atd.ad_id = HAL_DIAG_REGS | ATH_DIAG_IN | ATH_DIAG_DYN; if (ioctl(s, SIOCGATHDIAG, &atd) < 0) - err(1, atd.ad_name); + err(1, "%s", atd.ad_name); /* * Expand register data into global space that can be |