Fix printf to handle various datatypes for MHLEN.

This commit is contained in:
mlelstv 2020-02-29 16:56:58 +00:00
parent a0f9af825d
commit 68e96ced7e
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ieee80211_output.c,v 1.64 2018/12/22 13:11:37 maxv Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.65 2020/02/29 16:56:58 mlelstv Exp $ */
/*
* Copyright (c) 2001 Atsushi Onoe
@ -37,7 +37,7 @@
__FBSDID("$FreeBSD: src/sys/net80211/ieee80211_output.c,v 1.34 2005/08/10 16:22:29 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ieee80211_output.c,v 1.64 2018/12/22 13:11:37 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: ieee80211_output.c,v 1.65 2020/02/29 16:56:58 mlelstv Exp $");
#endif
#ifdef _KERNEL_OPT
@ -436,7 +436,7 @@ ieee80211_mbuf_adjust(struct ieee80211com *ic, int hdrsize,
}
IASSERT(needed_space <= MHLEN,
("not enough room, need %u got %zu\n", needed_space, MHLEN));
("not enough room, need %u got %lu\n", needed_space, (u_long)MHLEN));
/*
* Setup new mbuf to have leading space to prepend the