diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-11-27 13:37:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-11-28 19:17:06 +0000 |
commit | 068ab2135b3fe0d8957f099a5b860117457825ec (patch) | |
tree | 6af14cf538981639a38b2cec6c6101e9937f5934 /scripts/gdb/linux/tasks.py | |
parent | 2ea2ac84ef357dcaf11a80b303d391fb6c2510d8 (diff) |
tty: srmcons: remove 'str_cr' and use string directly
'str_cr' contains a single character: \r. There is no need to declare it
as array. Instead, pass the character (as a string) to callback_puts()
directly. This ensures the string is in proper .rodata (const) section
and makes the code more obvious.
Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: [email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions