]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
lib/bug: fix inconsistent capitalization in BUG message
authorJosh Law <objecting@objecting.org>
Fri, 6 Mar 2026 16:23:27 +0000 (16:23 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:42 +0000 (21:19 -0700)
Use lowercase "kernel BUG" consistently in pr_crit() messages.  The
verbose path already uses "kernel BUG at %s:%u!" but the non-verbose
fallback uses "Kernel BUG" with an uppercase 'K'.

Link: https://lkml.kernel.org/r/20260306162327.2815553-1-objecting@objecting.org
Signed-off-by: Josh Law <objecting@objecting.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/bug.c

index 623c467a8b76c7efb07345c371d22dca712807c3..d7faa1255f859077aaeb61df1c1af9a32af47dee 100644 (file)
--- a/lib/bug.c
+++ b/lib/bug.c
@@ -254,7 +254,7 @@ static enum bug_trap_type __report_bug(struct bug_entry *bug, unsigned long buga
        if (file)
                pr_crit("kernel BUG at %s:%u!\n", file, line);
        else
-               pr_crit("Kernel BUG at %pB [verbose debug info unavailable]\n",
+               pr_crit("kernel BUG at %pB [verbose debug info unavailable]\n",
                        (void *)bugaddr);
 
        return BUG_TRAP_TYPE_BUG;