[PATCH] lib/bug: fix inconsistent capitalization in BUG message

Josh Law posted 1 patch 1 month ago
lib/bug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] lib/bug: fix inconsistent capitalization in BUG message
Posted by Josh Law 1 month ago
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'.

Signed-off-by: Josh Law <objecting@objecting.org>
---
 lib/bug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bug.c b/lib/bug.c
index 623c467a8b76..d7faa1255f85 100644
--- 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;
-- 
2.43.0