Skip to contentSkip to conversation

lib/bug: fix inconsistent capitalization in BUG message

PATCH Applied Josh Law 1 participant 1 message Mar 6 Library code

lore
Share & tools
lore

Josh Law

author
#0 lore raw

PATCH 1/1 lib/bug: fix inconsistent capitalization in BUG message

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'.

---
 lib/bug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bug.c +1 -1
index 623c467a8b76..d7faa1255f85 100644
@@ -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;
Signature · 1 line
2.43.0