Page MenuHomeFreeBSD

D36021.diff
No OneTemporary

D36021.diff

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

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)

Event Timeline