[lvc-project] [PATCH net-next] tg3: use sysfs_emit() in tg3_show_temp()

Michael Chan michael.chan at broadcom.com
Fri Mar 29 00:48:53 MSK 2024


On Thu, Mar 28, 2024 at 12:56 PM Nikita Kiryushin <kiryushin at ancud.ru> wrote:
>
> Change sprintf() in sysfs show() handler to sysfs_emit(),
> as recommended by sysfs documentation.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Nikita Kiryushin <kiryushin at ancud.ru>

Reviewed-by: Michael Chan <michael.chan at broadcom.com>

Thanks.  We should eventually migrate to use
hwmon_device_register_with_info() so that we don't have to deal with
these sysfs strings.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4209 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20240328/e7e9568a/attachment.bin>


More information about the lvc-project mailing list