summaryrefslogtreecommitdiffstats
path: root/kernel/trace/rpm-traces.c
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2019-11-09 11:16:44 -0800
committerDaniel Thompson <daniel.thompson@linaro.org>2020-01-31 17:34:03 +0000
commitbbfceba15f8d1260c328a254efc2b3f2deae4904 (patch)
tree7a5a1d1bfa085a2ac07ede27a2af6c7c0c0189fc /kernel/trace/rpm-traces.c
parent9441d5f6b77770ee388884f04b14a99b028a15e6 (diff)
downloadlinux-bbfceba15f8d1260c328a254efc2b3f2deae4904.tar.bz2
kdb: Get rid of confusing diag msg from "rd" if current task has no regs
If you switch to a sleeping task with the "pid" command and then type "rd", kdb tells you this: No current kdb registers. You may need to select another task diag: -17: Invalid register name The first message makes sense, but not the second. Fix it by just returning 0 after commands accessing the current registers finish if we've already printed the "No current kdb registers" error. While fixing kdb_rd(), change the function to use "if" rather than "ifdef". It cleans the function up a bit and any modern compiler will have no trouble handling still producing good code. Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20191109111624.5.I121f4c6f0c19266200bf6ef003de78841e5bfc3d@changeid Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'kernel/trace/rpm-traces.c')
0 files changed, 0 insertions, 0 deletions