1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Add a format string to the err() calls.

This commit is contained in:
Adrian Chadd 2016-02-08 02:11:34 +00:00
parent bce8bf5bfb
commit 727d23e313
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295390

View File

@ -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