Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151382139
D31488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D31488.diff
View Options
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h
--- a/sys/compat/linux/linux_util.h
+++ b/sys/compat/linux/linux_util.h
@@ -165,6 +165,18 @@
} \
} while (0)
+#define LINUX_RATELIMIT_MSG(_message) \
+ do { \
+ static int seen = 0; \
+ \
+ if (seen == 0) { \
+ linux_msg(curthread, _message); \
+ \
+ if (linux_debug < 3) \
+ seen = 1; \
+ } \
+ } while (0)
+
#define LINUX_RATELIMIT_MSG_OPT1(_message, _opt1) \
do { \
static int seen = 0; \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 1:02 AM (9 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31125477
Default Alt Text
D31488.diff (545 B)
Attached To
Mode
D31488: linux(4): Add LINUX_RATELIMIT_MSG macro for future use.
Attached
Detach File
Event Timeline
Log In to Comment