mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Correct syntax error
@ 2022-11-22  3:04 Wang Honghui
  2022-11-22  7:56 ` Bagas Sanjaya
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Honghui @ 2022-11-22  3:04 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 20 bytes --]

printk_ringbuffer.c

[-- Attachment #2: 0001-Correct-grammar-errors.patch --]
[-- Type: text/x-diff, Size: 913 bytes --]

From 8d1e2b96c62d06bb691802a06501762da606e97e Mon Sep 17 00:00:00 2001
From: Wang Honghui <honghui.wang@139.com>
Date: Mon, 21 Nov 2022 16:58:00 +0800
Subject: [PATCH] Correct syntax error.

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

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");
  *
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-22  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  3:04 Correct syntax error Wang Honghui
2022-11-22  7:56 ` Bagas Sanjaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®