On Tue, 2014-12-02 at 11:46 +0200, Vladimir Kondratiev wrote: > Add rate-limited flavor of wil_err(); in some cases, > specially in IRQ and data path, if something went wrong, > error message may be printed at very high rate, rendering > whole system unresponsive or unstable. > Need to do real function and not a macro to have arguments > always evaluated. net_<foo>_ratelimited uses the same form. include/linux/net.h:#define net_ratelimited_function(function, ...) include/linux/net.h-do { include/linux/net.h- if (net_ratelimit()) include/linux/net.h- function(__VA_ARGS__); include/linux/net.h-} while (0) include/linux/net.h-#define net_err_ratelimited(fmt, ...) include/linux/net.h: net_ratelimited_function(pr_err, fmt, ##__VA_ARGS__) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html