Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154412392
D46463.id142662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
521 B
Referenced Files
None
Subscribers
None
D46463.id142662.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h
--- a/sys/compat/linuxkpi/common/include/linux/printk.h
+++ b/sys/compat/linuxkpi/common/include/linux/printk.h
@@ -125,4 +125,11 @@
#define pr_info_ratelimited(fmt, ...) \
printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
+#define no_printk(fmt, ...) \
+({ \
+ if (0) \
+ printk(pr_fmt(fmt), ##__VA_ARGS__); \
+ 0; \
+})
+
#endif /* _LINUXKPI_LINUX_PRINTK_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 9:53 AM (11 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32341139
Default Alt Text
D46463.id142662.diff (521 B)
Attached To
Mode
D46463: LinuxKPI: add no_printk
Attached
Detach File
Event Timeline
Log In to Comment