diff options
author | Arnd Bergmann <[email protected]> | 2024-05-28 14:11:48 +0200 |
---|---|---|
committer | Daniel Thompson <[email protected]> | 2024-06-21 14:33:17 +0100 |
commit | 70867efacf4370b6c7cdfc7a5b11300e9ef7de64 (patch) | |
tree | 98005190ec170863b1086ae990f81c940e88dc52 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff) |
kdb: address -Wformat-security warnings
When -Wformat-security is not disabled, using a string pointer
as a format causes a warning:
kernel/debug/kdb/kdb_io.c: In function 'kdb_read':
kernel/debug/kdb/kdb_io.c:365:36: error: format not a string literal and no format arguments [-Werror=format-security]
365 | kdb_printf(kdb_prompt_str);
| ^~~~~~~~~~~~~~
kernel/debug/kdb/kdb_io.c: In function 'kdb_getstr':
kernel/debug/kdb/kdb_io.c:456:20: error: format not a string literal and no format arguments [-Werror=format-security]
456 | kdb_printf(kdb_prompt_str);
| ^~~~~~~~~~~~~~
Use an explcit "%s" format instead.
Signed-off-by: Arnd Bergmann <[email protected]>
Fixes: 5d5314d6795f ("kdb: core for kgdb back end (1 of 2)")
Reviewed-by: Douglas Anderson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Thompson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions