diff options
| author | Jim Cromie <[email protected]> | 2021-10-13 22:07:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-10-14 08:59:14 +0000 |
| commit | 7edde0c807855a5bf149c6be3edfa11ecd919571 (patch) | |
| tree | df689af369e73f46e7bac0317229cfb98df9719c /lib/dynamic_debug.c | |
| parent | dyndbg: vpr-info on remove-module complete, not starting (diff) | |
| download | kernel-7edde0c807855a5bf149c6be3edfa11ecd919571.tar.gz kernel-7edde0c807855a5bf149c6be3edfa11ecd919571.zip | |
dyndbg: no vpr-info on empty queries
when `echo $cmd > control` contains multiple queries, extra query
separators (;\n) can parse as empty statements. This is normal, and a
vpr-info on an empty command is just noise.
Signed-off-by: Jim Cromie <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
| -rw-r--r-- | lib/dynamic_debug.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index d706abba8dad..ad80f1346c3f 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -540,8 +540,10 @@ static int ddebug_exec_queries(char *query, const char *modname) } i++; } - vpr_info("processed %d queries, with %d matches, %d errs\n", - i, nfound, errs); + + if (i) + vpr_info("processed %d queries, with %d matches, %d errs\n", + i, nfound, errs); if (exitcode) return exitcode; |
