Page MenuHomeFreeBSD

kassert.h: update MPASS definition commentary
ClosedPublic

Authored by mhorne on Mar 20 2024, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 5:34 PM
Unknown Object (File)
Nov 16 2024, 4:24 PM
Unknown Object (File)
Nov 5 2024, 9:47 PM
Unknown Object (File)
Oct 1 2024, 3:49 AM
Unknown Object (File)
Sep 30 2024, 6:39 AM
Unknown Object (File)
Sep 25 2024, 9:11 PM
Unknown Object (File)
Sep 24 2024, 3:26 AM
Unknown Object (File)
Sep 24 2024, 12:33 AM
Subscribers

Details

Summary

We now have a detailed man page describing both MPASS and KASSERT. Give
a warning that careless use of MPASS can result in inadequate assertion
messages, and point to the MPASS(9) page which describes this.

While here add a comment above the KASSERT definitions pointing to the
man page.

Suggested by: bz

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste added inline comments.
sys/sys/kassert.h
162

I'm not a fan of XXX for use other than "this is wrong/broken/needs to be revisited". Maybe NOTE?

This revision is now accepted and ready to land.Mar 20 2024, 3:39 PM
sys/sys/kassert.h
162

Xxx is ok in our code, but i agree with NOTE: to make it more accessible.

This revision was automatically updated to reflect the committed changes.