Page MenuHomeFreeBSD

LinuxKPI: add no_printk
ClosedPublic

Authored by bz on Aug 27 2024, 9:16 PM.
Tags
None
Referenced Files
F170873607: D46463.id142542.diff
Mon, Sep 7, 4:58 AM
Unknown Object (File)
Mon, Aug 31, 2:56 PM
Unknown Object (File)
Fri, Aug 28, 11:52 AM
Unknown Object (File)
Wed, Aug 26, 3:43 PM
Unknown Object (File)
Tue, Aug 25, 10:55 AM
Unknown Object (File)
Tue, Aug 25, 8:59 AM
Unknown Object (File)
Tue, Aug 25, 12:56 AM
Unknown Object (File)
Mon, Aug 24, 10:33 PM
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 Not Applicable
Unit
Tests Not Applicable