aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <[email protected]>2021-06-03 00:01:08 +0000
committerBjorn Helgaas <[email protected]>2021-06-03 17:14:36 -0500
commit316ae33051215f92c72fe13bc1bfc4e513a26700 (patch)
tree1cab88efef6cd3ebc148127417f091386836b790 /scripts/gdb/linux/proc.py
parentbdcdaa13ad96f1a530711c29e6d4b8311eff767c (diff)
PCI/sysfs: Rely on lengths from scnprintf(), dsm_label_utf16s_to_utf8s()
scnprintf() returns the number of bytes written into the buffer. Change dsm_label_utf16s_to_utf8s() to do the same. Rely on those values instead of using strlen() to compute the buffer length. No functional change intended. [bhelgaas: reorder patch in series, len++ to include newline added by dsm_label_utf16s_to_utf8s(), commit log] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions