]> git.baikalelectronics.ru Git - kernel.git/commit
dyndbg: fix problem parsing format="foo bar"
authorJim Cromie <jim.cromie@gmail.com>
Mon, 31 Aug 2020 18:22:10 +0000 (12:22 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Sep 2020 15:21:56 +0000 (17:21 +0200)
commit122fd58a5d105605abaa5a575d62b222640f37bf
treee36e4a47340beadc5179ec382abff82f1718c1bd
parent5d746da133e6371503f31ffa81893a77ef9e2d87
dyndbg: fix problem parsing format="foo bar"

commit 11acf86f8a26 ("dyndbg: accept query terms like file=bar and
module=foo") added the combined keyword=value parsing poorly; revert
most of it, keeping the keyword & arg change.

Instead, fix the tokenizer for the new input, by terminating the
keyword (an unquoted word) on '=' as well as space, thus letting the
tokenizer work on the quoted argument, like it would have previously.

Also add a few debug-prints to show more parsing context, into
tokenizer and parse-query, and use "keyword, value" in others.

Fixes: 11acf86f8a26 ("dyndbg: accept query terms like file=bar and module=foo")
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200831182210.850852-4-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c