printk: fix a typo of comment
authorWang Honghui <honghui.wang@ucas.com.cn>
Tue, 22 Nov 2022 08:50:36 +0000 (16:50 +0800)
committerPetr Mladek <pmladek@suse.com>
Tue, 22 Nov 2022 11:10:15 +0000 (12:10 +0100)
Fix a typo of comment

Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/77522C532189E547+Y3yG91g6XALbtdJr@TP-P15V.lan
Link: https://lore.kernel.org/r/0C7C980DB815FAE1+Y3yNXJCqZ3Nzxa5V@TP-P15V.lan
kernel/printk/printk_ringbuffer.c

index 2b7b6ddab4f702ce282561f0745628ed44858a37..2dc4d5a1f1ff824031a25c8d0cb5dd68925d6b14 100644 (file)
  *     prb_rec_init_wr(&r, 5);
  *
  *     // try to extend, but only if it does not exceed 32 bytes
- *     if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id()), 32) {
+ *     if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id(), 32)) {
  *             snprintf(&r.text_buf[r.info->text_len],
  *                      r.text_buf_size - r.info->text_len, "hello");
  *