summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorEduard Zateev <hackerowskiy@gmail.com>2026-09-23 04:48:27 +0200
committerGuenter Roeck <linux@roeck-us.net>2026-09-29 06:57:31 -0700
commit501e87e90b87a78e91b316ce391a43b30a8cce7f (patch)
treef732652d7a601726ef4723058a3f46068485bb45 /tools/lib/python
parent60b7a2d10b335f2855ac4f27c10293711bf0dc98 (diff)
downloadlinux-next-501e87e90b87a78e91b316ce391a43b30a8cce7f.tar.gz
linux-next-501e87e90b87a78e91b316ce391a43b30a8cce7f.zip
hwmon: (pmbus/ibm-cffps) Avoid format truncation warnings
Building with W=1 reports format truncation warnings when formatting the firmware version values for debugfs. The SMBus helpers return the byte and word values as int, so the compiler cannot infer that the formatted values fit into the small temporary buffers. Cast the values to u8 and u16 before formatting them. This avoids the -Wformat-truncation warnings while keeping the existing output format unchanged. Signed-off-by: Eduard Zateev <hackerowskiy@gmail.com> Link: https://patch.msgid.link/20260923024827.56445-1-hackerowskiy@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions