summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-02-03 00:15:19 +0000
committerdelphij <delphij@FreeBSD.org>2009-02-03 00:15:19 +0000
commit354874c0814569895ac7bcbb4d46769eb7cc63f0 (patch)
tree56c7820d053ff0fe43a7bc2f8b5bb798b8939591 /sbin/ifconfig
parent0821a484fd1689055f92e94b6765299d805df467 (diff)
downloadFreeBSD-src-354874c0814569895ac7bcbb4d46769eb7cc63f0.zip
FreeBSD-src-354874c0814569895ac7bcbb4d46769eb7cc63f0.tar.gz
Use %u instead of %zu when we intend to print integer constant.
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifieee80211.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index ed2757e..a5d649c 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -1023,16 +1023,16 @@ set80211chanlist(const char *val, int d, int s, const struct afswtch *rafp)
switch (sscanf(cp, "%u-%u", &first, &last)) {
case 1:
if (first > IEEE80211_CHAN_MAX)
- errx(-1, "channel %u out of range, max %zu",
+ errx(-1, "channel %u out of range, max %u",
first, IEEE80211_CHAN_MAX);
setbit(chanlist.ic_channels, first);
break;
case 2:
if (first > IEEE80211_CHAN_MAX)
- errx(-1, "channel %u out of range, max %zu",
+ errx(-1, "channel %u out of range, max %u",
first, IEEE80211_CHAN_MAX);
if (last > IEEE80211_CHAN_MAX)
- errx(-1, "channel %u out of range, max %zu",
+ errx(-1, "channel %u out of range, max %u",
last, IEEE80211_CHAN_MAX);
if (first > last)
errx(-1, "void channel range, %u > %u",
OpenPOWER on IntegriCloud