]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scripts/gdb: fix interrupts display after MCP on x86
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 23 Jun 2025 16:41:52 +0000 (09:41 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 04:07:52 +0000 (21:07 -0700)
The text line would not be appended to as it should have, it should have
been a '+=' but ended up being a '==', fix that.

Link: https://lkml.kernel.org/r/20250623164153.746359-1-florian.fainelli@broadcom.com
Fixes: b0969d7687a7 ("scripts/gdb: print interrupts")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/gdb/linux/interrupts.py

index 616a5f26377a8cb63e4a81f44db4f490274f13f0..199d9e8193f43c3b2ff6bd3ed3b4149a3b7d7512 100644 (file)
@@ -142,7 +142,7 @@ def x86_show_interupts(prec):
 
     if constants.LX_CONFIG_X86_MCE:
         text += x86_show_mce(prec, "&mce_exception_count", "MCE", "Machine check exceptions")
-        text == x86_show_mce(prec, "&mce_poll_count", "MCP", "Machine check polls")
+        text += x86_show_mce(prec, "&mce_poll_count", "MCP", "Machine check polls")
 
     text += show_irq_err_count(prec)