HomeFreeBSD

mbuf: add mbuf information to KASSERTs

Description

mbuf: add mbuf information to KASSERTs

Be more consistent about printing the mbuf pointer in KASSERT messages.
This massively helps debugging and we were already doing a good job at
it.

Also replace some handrolled KASSERTs with M_ASSERTPKTHDR() for fewer
copies of the check logic.

In m_align() move the msg into the KASSERT given after it was moved
here in ed6a66ca6c206 the msg is only used in one place.

Sponsored by: The FreeBSD Foundation
Reviewed by: glebius, zlei
Differential Revision: https://reviews.freebsd.org/D49817

(cherry picked from commit 22d5d61f91eb70ced6a010d9a1d60f0ff33fff2f)

Details

Provenance
bzAuthored on Sun, Apr 13, 1:25 PM
Reviewer
glebius
Differential Revision
D49817: mbuf: add mbuf information to KASSERTs
Parents
rG1be235fcc48c: rtw89: make wow.c compile
Branches
Unknown
Tags
Unknown