linux(4): Add LINUX_RATELIMIT_MSG_OPT2 for future use
MFC after: 2 weeks
This commit is contained in:
parent
53494b918d
commit
4f02a4f48c
@ -198,4 +198,16 @@ bool linux_use_real_ifname(const struct ifnet *ifp);
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define LINUX_RATELIMIT_MSG_OPT2(_message, _opt1, _opt2) \
|
||||
do { \
|
||||
static int seen = 0; \
|
||||
\
|
||||
if (seen == 0) { \
|
||||
linux_msg(curthread, _message, _opt1, _opt2); \
|
||||
\
|
||||
if (linux_debug < 3) \
|
||||
seen = 1; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* ! _LINUX_UTIL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user