HomeFreeBSD

net80211: format debug functions as single line

Description

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

(cherry picked from commit 04435a1b145b310f8be62dd453e2f0c69d764cca)

Details

Provenance
bzAuthored on Dec 26 2021, 5:24 PM
Parents
rG3fa5cdffcc97: net80211: fix debug printf
Branches
Unknown
Tags
Unknown