Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_util.h
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | do { \ | ||||
if (seen == 0 && linux_debug >= 2) { \ | if (seen == 0 && linux_debug >= 2) { \ | ||||
linux_msg(curthread, "%s is not tested, please report on emulation@FreeBSD.org how it works", _what); \ | linux_msg(curthread, "%s is not tested, please report on emulation@FreeBSD.org how it works", _what); \ | ||||
\ | \ | ||||
if (linux_debug < 3) \ | if (linux_debug < 3) \ | ||||
seen = 1; \ | seen = 1; \ | ||||
} \ | } \ | ||||
} while (0) | } 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) \ | #define LINUX_RATELIMIT_MSG_OPT1(_message, _opt1) \ | ||||
do { \ | do { \ | ||||
static int seen = 0; \ | static int seen = 0; \ | ||||
\ | \ | ||||
if (seen == 0) { \ | if (seen == 0) { \ | ||||
linux_msg(curthread, _message, _opt1); \ | linux_msg(curthread, _message, _opt1); \ | ||||
\ | \ | ||||
if (linux_debug < 3) \ | if (linux_debug < 3) \ | ||||
seen = 1; \ | seen = 1; \ | ||||
} \ | } \ | ||||
} while (0) | } while (0) | ||||
#endif /* ! _LINUX_UTIL_H_ */ | #endif /* ! _LINUX_UTIL_H_ */ |