We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ab3e7e + c1d5f45 commit d6d95a2Copy full SHA for d6d95a2
main.c
@@ -96,8 +96,9 @@ static DECLARE_WAIT_QUEUE_HEAD(rx_wait);
96
static void produce_board(void)
97
{
98
unsigned int len = kfifo_in(&rx_fifo, draw_buffer, sizeof(draw_buffer));
99
- if (unlikely(len < sizeof(draw_buffer)) && printk_ratelimit())
100
- pr_warn("%s: %zu bytes dropped\n", __func__, sizeof(draw_buffer) - len);
+ if (unlikely(len < sizeof(draw_buffer)))
+ pr_warn_ratelimited("%s: %zu bytes dropped\n", __func__,
101
+ sizeof(draw_buffer) - len);
102
103
pr_debug("kxo: %s: in %u/%u bytes\n", __func__, len, kfifo_len(&rx_fifo));
104
}
0 commit comments