HomeFreeBSD

KASSERT(9): add assertion message guidelines

Description

KASSERT(9): add assertion message guidelines

Add some text describing how to create useful assertion messages.
Improve and add to the EXAMPLES.

See the discussion prompting this on -hackers:
https://mail-archive.freebsd.org/cgi/mid.cgi?57o4rnnq-013s-3nsn-59n5-4ssn1pq81s94

Reviewed by: emaste
Discussed with: imp, bz
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44434

(cherry picked from commit 83a426d13a6a384e63e75d8252c03dd40af3817e)

Details

Provenance
mhorneAuthored on Mar 21 2024, 2:54 PM
Reviewer
emaste
Differential Revision
D44434: KASSERT(9): add assertion message guidelines
Parents
rG74b1a9ccf9a7: cp: Remove useless ssize_t cast
Branches
Unknown
Tags
Unknown