]> 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)
commitaa191dd35d4699401be794754f5542aeffa98dff
treee36e4a47340beadc5179ec382abff82f1718c1bd
parentc6a88671fcbaa8ce75c7ff4a29590a2110ddd62e
dyndbg: fix problem parsing format="foo bar"

commit c77254e16ff9 ("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: c77254e16ff9 ("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