[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <66fa2e4cb98993032f58845218e0d527ef9398f0.1701993656.git.jim.cromie@gmail.com>
Date: Thu, 7 Dec 2023 17:15:14 -0700
From: Jim Cromie <jim.cromie@...il.com>
To: lb@...ihalf.com, linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, bleung@...gle.com, contact@...rsion.fr,
daniel@...ll.ch, dianders@...omium.org, groeck@...gle.com,
jbaron@...mai.com, jim.cromie@...il.com, john.ogness@...utronix.de,
keescook@...omium.org, pmladek@...e.com, ppaalanen@...il.com,
rostedt@...dmis.org, seanpaul@...omium.org,
sergey.senozhatsky@...il.com, upstream@...ihalf.com,
vincent.whitchurch@...s.com, yanivt@...gle.com,
gregkh@...uxfoundation.org
Subject: [re: PATCH v2 00/15 - 11/11] dyndbg: id the bad word in parse-flags err msg
if ddebug_parse_flags() rejects user input, identify that input value
in the error message.
---
lib/dynamic_debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index b63429462d69..f4b1d3ef837d 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -937,7 +937,7 @@ static int ddebug_exec_query(char *query_string, const char *modname)
/* check flags 1st (last arg) so query is pairs of spec,val */
if (ddebug_parse_flags(words[nwords-1], &modifiers)) {
- pr_err("flags parse failed\n");
+ pr_err("flags parse failed on word-%d: %s\n", nwords-1, words[nwords-1]);
return -EINVAL;
}
--
2.43.0
Powered by blists - more mailing lists