Page MenuHomeFreeBSD

LinuxKPI: add no_printk
ClosedPublic

Authored by bz on Aug 27 2024, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 2:23 PM
Unknown Object (File)
Wed, Apr 1, 4:43 PM
Unknown Object (File)
Mon, Mar 30, 4:07 PM
Unknown Object (File)
Fri, Mar 20, 1:21 PM
Unknown Object (File)
Fri, Mar 20, 10:06 AM
Unknown Object (File)
Fri, Mar 20, 1:05 AM
Unknown Object (File)
Fri, Mar 13, 12:13 PM
Unknown Object (File)
Jan 19 2026, 1:33 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 Not Applicable
Unit
Tests Not Applicable