Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177372113
D61203.1794220713.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
841 B
Referenced Files
None
Subscribers
None
D61203.1794220713.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/kernel.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/kernel.h
+++ sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -180,11 +180,18 @@
if (linuxkpi_debug) \
log(LOG_DEBUG, fmt, ##__VA_ARGS__); \
} while (0)
+#define pr_debug_once(fmt, ...) \
+ do { \
+ if (linuxkpi_debug) \
+ log_once(LOG_DEBUG, fmt, ##__VA_ARGS__);\
+ } while (0)
#define pr_devel(fmt, ...) \
log(LOG_DEBUG, pr_fmt(fmt), ##__VA_ARGS__)
#else
#define pr_debug(fmt, ...) \
({ if (0) log(LOG_DEBUG, fmt, ##__VA_ARGS__); 0; })
+#define pr_debug_once(fmt, ...) \
+ ({ if (0) log_once(LOG_DEBUG, fmt, ##__VA_ARGS__); 0; })
#define pr_devel(fmt, ...) \
({ if (0) log(LOG_DEBUG, pr_fmt(fmt), ##__VA_ARGS__); 0; })
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 10:38 AM (29 m, 50 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41612792
Default Alt Text
D61203.1794220713.diff (841 B)
Attached To
Mode
D61203: linuxkpi: Define `pr_debug_once()`
Attached
Detach File
Event Timeline