Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105532733
D36021.id108818.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
649 B
Referenced Files
None
Subscribers
None
D36021.id108818.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/device.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/device.h
+++ 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 = 1; \
+ 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, 8:49 AM (15 h, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15482725
Default Alt Text
D36021.id108818.diff (649 B)
Attached To
Mode
D36021: linuxkpi: Add dev_info_once
Attached
Detach File
Event Timeline
Log In to Comment