Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105525569
D36021.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
647 B
Referenced Files
None
Subscribers
None
D36021.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
@@ -193,6 +193,14 @@
#define dev_printk(lvl, dev, fmt, ...) \
device_printf((dev)->bsddev, fmt, ##__VA_ARGS__)
+#define dev_info_once(dev, ...) do { \
+ static bool __dev_info_once; \
+ if (!__dev_info_once) { \
+ __dev_info_once = true; \
+ dev_info(dev, __VA_ARGS__); \
+ } \
+} while (0)
+
#define dev_err_once(dev, ...) do { \
static bool __dev_err_once; \
if (!__dev_err_once) { \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 6:51 AM (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15480251
Default Alt Text
D36021.diff (647 B)
Attached To
Mode
D36021: linuxkpi: Add dev_info_once
Attached
Detach File
Event Timeline
Log In to Comment