public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wang Honghui <honghui.wang@139.com>
To: linux-kernel@vger.kernel.org
Subject: Correct syntax error
Date: Tue, 22 Nov 2022 11:04:05 +0800	[thread overview]
Message-ID: <Y3w8JZjR5LygcClz@TP-P15V.lan> (raw)

[-- 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


             reply	other threads:[~2022-11-22  3:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-22  3:04 Wang Honghui [this message]
2022-11-22  7:56 ` Correct syntax error Bagas Sanjaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y3w8JZjR5LygcClz@TP-P15V.lan \
    --to=honghui.wang@139.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox