Page MenuHomeFreeBSD

D46463.diff
No OneTemporary

D46463.diff

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

Mime Type
text/plain
Expires
Sun, Jan 19, 1:01 PM (17 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15941523
Default Alt Text
D46463.diff (521 B)

Event Timeline