Page MenuHomeFreeBSD

LinuxKPI: add no_printk
ClosedPublic

Authored by bz on Aug 27 2024, 9:16 PM.
Tags
None
Referenced Files
F101536739: D46463.id142662.diff
Thu, Oct 31, 2:12 AM
Unknown Object (File)
Sun, Oct 27, 8:35 AM
Unknown Object (File)
Wed, Oct 23, 3:21 AM
Unknown Object (File)
Wed, Oct 9, 8:05 AM
Unknown Object (File)
Oct 1 2024, 8:45 AM
Unknown Object (File)
Oct 1 2024, 5:41 AM
Unknown Object (File)
Sep 27 2024, 11:04 AM
Unknown Object (File)
Sep 25 2024, 3:04 AM
Subscribers

Details

Summary

Add a version of no_printk(), which seems to be there to have format
string chekcing while never calling the printk. It seems a very weird
thing and it needs a return code and for some reason my initial
while (0) { } version hadn't worked while porting over new code but
could have been further downstream format string problems.
if (0) seems to do the job though I would have expected that to more
likely simply get optimised out without any futher format checking.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59208
Build 56095: arc lint + arc unit