All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/nmi_backtrace: fix two typos in log messages
@ 2026-11-30 19:47 Gabor Juhos
  2026-11-30 22:40 ` + lib-nmi_backtrace-fix-two-typos-in-log-messages.patch added to mm-nonmm-unstable branch Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Gabor Juhos @ 2026-11-30 19:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Gabor Juhos

Both messages in the nmi_trigger_cpumask_backtrace() are contains typos.
In the first message, the colon is misplaced, it should be printed before
the bitmask. In the second message, 'CPUS' should be written as 'CPUs'.

Fix both.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
---
Note: checkpatch.pl emits a warning becuse the pr_warn() line exceeds the
100 columns limit, although the patch does not change the lenght of the
line.
---
 lib/nmi_backtrace.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/nmi_backtrace.c b/lib/nmi_backtrace.c
index f39c9eca8888..bf35f777856e 100644
--- a/lib/nmi_backtrace.c
+++ b/lib/nmi_backtrace.c
@@ -66,7 +66,7 @@ void nmi_trigger_cpumask_backtrace(const cpumask_t *mask,
 		nmi_cpu_backtrace(NULL);
 
 	if (!cpumask_empty(to_cpumask(backtrace_mask))) {
-		pr_info("Sending NMI from CPU %d to CPUs %*pbl:\n",
+		pr_info("Sending NMI from CPU %d to CPUs: %*pbl\n",
 			this_cpu, nr_cpumask_bits, to_cpumask(backtrace_mask));
 		nmi_backtrace_stall_snap(to_cpumask(backtrace_mask));
 		raise(to_cpumask(backtrace_mask));
@@ -81,7 +81,7 @@ void nmi_trigger_cpumask_backtrace(const cpumask_t *mask,
 	}
 
 	if (!cpumask_empty(to_cpumask(backtrace_mask))) {
-		pr_warn("After " __stringify(NMI_BT_TIMEOUT_SEC) " seconds, these CPUS still haven't responded to the NMI: %*pbl\n",
+		pr_warn("After " __stringify(NMI_BT_TIMEOUT_SEC) " seconds, these CPUs still haven't responded to the NMI: %*pbl\n",
 			cpumask_pr_args(to_cpumask(backtrace_mask)));
 
 		nmi_backtrace_stall_check(to_cpumask(backtrace_mask));

---
base-commit: 87ffe1d768dce89729caba4829db89bbd96ca9b6
change-id: 20261130-nmi-backtrace-fix-typos-1348f4dc1673

Best regards,
-- 
Gabor Juhos <j4g8y7@gmail.com>


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

* + lib-nmi_backtrace-fix-two-typos-in-log-messages.patch added to mm-nonmm-unstable branch
  2026-11-30 19:47 [PATCH] lib/nmi_backtrace: fix two typos in log messages Gabor Juhos
@ 2026-11-30 22:40 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2026-11-30 22:40 UTC (permalink / raw)
  To: mm-commits, j4g8y7, akpm


The patch titled
     Subject: lib/nmi_backtrace: fix two typos in log messages
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     lib-nmi_backtrace-fix-two-typos-in-log-messages.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-nmi_backtrace-fix-two-typos-in-log-messages.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Gabor Juhos <j4g8y7@gmail.com>
Subject: lib/nmi_backtrace: fix two typos in log messages
Date: Mon, 30 Nov 2026 20:47:22 +0100

Both messages in the nmi_trigger_cpumask_backtrace() are contains typos. 
In the first message, the colon is misplaced, it should be printed before
the bitmask.  In the second message, 'CPUS' should be written as 'CPUs'.

Fix both.

Link: https://patch.msgid.link/20261130-nmi-backtrace-fix-typos-v1-1-1ef84a82593d@gmail.com
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

 lib/nmi_backtrace.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/lib/nmi_backtrace.c~lib-nmi_backtrace-fix-two-typos-in-log-messages
+++ a/lib/nmi_backtrace.c
@@ -66,7 +66,7 @@ void nmi_trigger_cpumask_backtrace(const
 		nmi_cpu_backtrace(NULL);
 
 	if (!cpumask_empty(to_cpumask(backtrace_mask))) {
-		pr_info("Sending NMI from CPU %d to CPUs %*pbl:\n",
+		pr_info("Sending NMI from CPU %d to CPUs: %*pbl\n",
 			this_cpu, nr_cpumask_bits, to_cpumask(backtrace_mask));
 		nmi_backtrace_stall_snap(to_cpumask(backtrace_mask));
 		raise(to_cpumask(backtrace_mask));
@@ -81,7 +81,7 @@ void nmi_trigger_cpumask_backtrace(const
 	}
 
 	if (!cpumask_empty(to_cpumask(backtrace_mask))) {
-		pr_warn("After " __stringify(NMI_BT_TIMEOUT_SEC) " seconds, these CPUS still haven't responded to the NMI: %*pbl\n",
+		pr_warn("After " __stringify(NMI_BT_TIMEOUT_SEC) " seconds, these CPUs still haven't responded to the NMI: %*pbl\n",
 			cpumask_pr_args(to_cpumask(backtrace_mask)));
 
 		nmi_backtrace_stall_check(to_cpumask(backtrace_mask));
_

Patches currently in -mm which might be from j4g8y7@gmail.com are

lib-nmi_backtrace-fix-two-typos-in-log-messages.patch


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

end of thread, other threads:[~2026-11-30 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 19:47 [PATCH] lib/nmi_backtrace: fix two typos in log messages Gabor Juhos
2026-11-30 22:40 ` + lib-nmi_backtrace-fix-two-typos-in-log-messages.patch added to mm-nonmm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.