Add missing err() format strings.
Thanks to: clang
This commit is contained in:
parent
e337f1ac1d
commit
c6b1b4562c
@ -159,7 +159,7 @@ main(int argc, char *argv[])
|
||||
atd.ad_out_data = (caddr_t) &eep;
|
||||
atd.ad_out_size = sizeof(eep);
|
||||
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
|
||||
err(1, atd.ad_name);
|
||||
err(1, "ioctl: %s", atd.ad_name);
|
||||
if (fd == NULL) {
|
||||
fd = opentemplate(DIR_TEMPLATE);
|
||||
if (fd == NULL)
|
||||
@ -186,7 +186,7 @@ eeread(u_int16_t off)
|
||||
atd.ad_out_size = sizeof(eedata);
|
||||
atd.ad_out_data = (caddr_t) &eedata;
|
||||
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
|
||||
err(1, atd.ad_name);
|
||||
err(1, "ioctl: %s", atd.ad_name);
|
||||
return eedata;
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ eewrite(uint16_t off, uint16_t value)
|
||||
atd.ad_out_size = 0;
|
||||
atd.ad_out_data = NULL;
|
||||
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
|
||||
err(1, atd.ad_name);
|
||||
err(1, "ioctl: %s", atd.ad_name);
|
||||
}
|
||||
|
||||
#define MAXID 128
|
||||
@ -332,7 +332,7 @@ setmode(int mode)
|
||||
+ sizeof(EXPN_DATA_PER_CHANNEL_5112) * exp->numChannels;
|
||||
atd.ad_out_data = (caddr_t) malloc(atd.ad_out_size);
|
||||
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
|
||||
err(1, atd.ad_name);
|
||||
err(1, "ioctl: %s", atd.ad_name);
|
||||
exp->pChannels = (void *) atd.ad_out_data;
|
||||
exp->pDataPerChannel = (void *)((char *)atd.ad_out_data +
|
||||
roundup(sizeof(u_int16_t) * exp->numChannels, sizeof(u_int32_t)));
|
||||
|
Loading…
Reference in New Issue
Block a user