summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-05-27 02:01:06 +0200
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-07-31 17:00:48 +0530
commitdd6c80abf46a966f839fead7659bda05f80e462b (patch)
treecb5a5cefb9022fcea62960fcb6c5d7e68ae3ebe8 /tools/lib/python
parentc2c8844316a12c2e1a3314e4f021815dd7fc7b47 (diff)
powerpc/kexec_file: use snprintf to simplify setup_kdump_cmdline
Replace the manual string length accounting, memcpy(), and NUL termination with a single snprintf() call to prepend the elfcorehdr= address and to detect string truncation at the same time. Use kmalloc() to avoid unnecessarily zeroing the memory. While at it, also use "prepending" instead of "appending" in the error message. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260527000105.1081651-3-thorsten.blum@linux.dev
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions