linux-yocto/kernel/debug/kdb
Douglas Anderson 9e58df60f6 kdb: Use the passed prompt in kdb_position_cursor()
[ Upstream commit e2e8210959 ]

The function kdb_position_cursor() takes in a "prompt" parameter but
never uses it. This doesn't _really_ matter since all current callers
of the function pass the same value and it's a global variable, but
it's a bit ugly. Let's clean it up.

Found by code inspection. This patch is expected to functionally be a
no-op.

Fixes: 09b3598942 ("kdb: Use format-strings rather than '\0' injection in kdb_read()")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240528071144.1.I0feb49839c6b6f4f2c4bf34764f5e95de3f55a66@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:54:34 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kdb_bp.c kdb: Rename members of struct kdbtab_t 2021-07-27 17:05:06 +01:00
kdb_bt.c kdb: Adopt scheduler's task classification 2021-11-03 17:21:37 +00:00
kdb_cmds
kdb_debugger.c kdb: Get rid of custom debug heap allocator 2021-07-27 14:46:11 +01:00
kdb_io.c kdb: Use the passed prompt in kdb_position_cursor() 2024-08-03 08:54:34 +02:00
kdb_keyboard.c kdb: include kdb_private.h for function prototypes 2023-06-29 15:10:17 +01:00
kdb_main.c kdb: Fix a potential buffer overflow in kdb_local() 2024-01-25 15:36:00 -08:00
kdb_private.h kdb: move kdb_send_sig() declaration to a better header file 2023-07-03 09:27:12 +01:00
kdb_support.c module: Move kdb module related code out of main kdb code 2022-04-05 08:43:04 -07:00
Makefile kdb: Get rid of broken attempt to print CCVERSION in kdb summary 2019-05-12 09:50:43 +01:00