1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-23 16:01:42 +00:00

* Add missing err() string formats;

* Fix up a printf() type mismatch.

Thanks to: clang
This commit is contained in:
Adrian Chadd 2013-01-02 18:12:06 +00:00
parent 6029f436bb
commit e337f1ac1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244963

View File

@ -83,8 +83,8 @@ getdata(const char *arg, u_int8_t *data, size_t maxlen)
}
if (len > maxlen) {
fprintf(stderr,
"%s: too much data in %s, max %u bytes\n",
progname, arg, maxlen);
"%s: too much data in %s, max %llu bytes\n",
progname, arg, (unsigned long long) maxlen);
}
data[len++] = (b0<<4) | b1;
}
@ -178,7 +178,7 @@ main(int argc, char *argv[])
atd.ad_in_data = (caddr_t) &keyix;
atd.ad_in_size = sizeof(u_int16_t);
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
err(1, atd.ad_name);
err(1, "ioctl: %s", atd.ad_name);
return 0;
case HAL_DIAG_SETKEY:
if (argc != 3 && argc != 4)
@ -196,7 +196,7 @@ main(int argc, char *argv[])
atd.ad_in_data = (caddr_t) &setkey;
atd.ad_in_size = sizeof(setkey);
if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
err(1, atd.ad_name);
err(1, "ioctl: %s", atd.ad_name);
return 0;
}
return -1;