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)
Tue, Sep 29, 12:26 PM
Unknown Object (File)
Fri, Sep 25, 11:01 PM
Unknown Object (File)
Wed, Sep 9, 3:43 PM
Unknown Object (File)
Mon, Sep 7, 5:35 AM
Unknown Object (File)
Sep 6 2026, 7:22 PM
Unknown Object (File)
Sep 2 2026, 2:15 AM
Unknown Object (File)
Sep 2 2026, 12:18 AM
Unknown Object (File)
Aug 28 2026, 2:47 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.