]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: format debug functions as single line
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 26 Dec 2021 17:24:04 +0000 (17:24 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 26 Dec 2021 17:24:04 +0000 (17:24 +0000)
commit04435a1b145b310f8be62dd453e2f0c69d764cca
tree84a05f536c2f3a6ac31639584162413fb6b4e451
parentfe27f1db5f0b67ad2681a35253f7c1a4dc9874f8
net80211: format debug functions as single line

Making use of the debug output was hard given debug lines were run in
parts through vlog (if_printf) and in (multiple) parts through printf(s).

Like some of the functions alreay have, use a local buffer to format
the string and then use a single if_printf;  in addition given these
functions are debug-only, add an extra printf in case we find our
buffers still to be too small so we can adjust for the future.
We already found that 128 characters are to short for some log messages.
Bump the buffer sizes collectively to 256 characters which also is
the maximum of if_vlog() so getting longer would need further changes
elsewhere.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
sys/net80211/ieee80211_input.c