Page MenuHomeFreeBSD

LinuxKPI: add no_printk
ClosedPublic

Authored by bz on Aug 27 2024, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 7:28 PM
Unknown Object (File)
Fri, Sep 12, 2:59 PM
Unknown Object (File)
Sep 8 2025, 4:17 AM
Unknown Object (File)
Aug 3 2025, 4:02 AM
Unknown Object (File)
Jul 19 2025, 9:33 AM
Unknown Object (File)
Jul 7 2025, 9:04 AM
Unknown Object (File)
Jul 6 2025, 12:50 PM
Unknown Object (File)
Jul 5 2025, 2:25 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