printk: fix a typo of comment

Message ID 77522C532189E547+Y3yG91g6XALbtdJr@TP-P15V.lan
State New
Headers
Series printk: fix a typo of comment |

Commit Message

Wang Honghui Nov. 22, 2022, 8:23 a.m. UTC
  Printk: Fix a typo of commen

Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>
---
 kernel/printk/printk_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

John Ogness Nov. 22, 2022, 8:40 a.m. UTC | #1
On 2022-11-22, Wang Honghui <honghui.wang@ucas.com.cn> wrote:
> Printk: Fix a typo of commen

                comment ^^^^^^

> Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>

Reviewed-by: John Ogness <john.ogness@linutronix.de>

Thanks!
  

Patch

diff --git a/kernel/printk/printk_ringbuffer.c b/kernel/printk/printk_ringbuffer.c
index 2b7b6ddab4f7..2dc4d5a1f1ff 100644
--- a/kernel/printk/printk_ringbuffer.c
+++ b/kernel/printk/printk_ringbuffer.c
@@ -203,7 +203,7 @@ 
  *	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");
  *