Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146162293
D42795.id131768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
592 B
Referenced Files
None
Subscribers
None
D42795.id131768.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -236,6 +236,14 @@
} \
} while (0)
+#define dev_dbg_once(dev, ...) do { \
+ static bool __dev_dbg_once; \
+ if (!__dev_dbg_once) { \
+ __dev_dbg_once = 1; \
+ dev_dbg(dev, __VA_ARGS__); \
+ } \
+} while (0)
+
#define dev_err_ratelimited(dev, ...) do { \
static linux_ratelimit_t __ratelimited; \
if (linux_ratelimited(&__ratelimited)) \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 8:47 AM (12 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29106386
Default Alt Text
D42795.id131768.diff (592 B)
Attached To
Mode
D42795: LinuxKPI: Implement dev_dbg_once() macro
Attached
Detach File
Event Timeline
Log In to Comment