[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250427100442.958352-3-ye.liu@linux.dev>
Date: Sun, 27 Apr 2025 18:04:41 +0800
From: Ye Liu <ye.liu@...ux.dev>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
rppt@...nel.org,
lorenzo.stoakes@...cle.com,
Liam.Howlett@...cle.com,
david@...hat.com,
harry.yoo@...cle.com,
riel@...riel.com,
vbabka@...e.cz,
liuye@...inos.cn,
ye.liu@...ux.dev
Subject: [PATCH 2/3] mm/debug_page_alloc: improve error message for invalid guardpage minorder
From: Ye Liu <liuye@...inos.cn>
When an invalid debug_guardpage_minorder value is provided, include the
user input in the error message. This helps users and developers diagnose
configuration issues more easily.
No functional change.
Signed-off-by: Ye Liu <liuye@...inos.cn>
---
mm/debug_page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/debug_page_alloc.c b/mm/debug_page_alloc.c
index d46acf989dde..6a26eca546c3 100644
--- a/mm/debug_page_alloc.c
+++ b/mm/debug_page_alloc.c
@@ -23,7 +23,7 @@ static int __init debug_guardpage_minorder_setup(char *buf)
unsigned long res;
if (kstrtoul(buf, 10, &res) < 0 || res > MAX_PAGE_ORDER / 2) {
- pr_err("Bad debug_guardpage_minorder value\n");
+ pr_err("Bad debug_guardpage_minorder value: %s\n", buf);
return 0;
}
_debug_guardpage_minorder = res;
--
2.25.1
Powered by blists - more mailing lists