Re: [PATCH net-next] tg3: use sysfs_emit() in tg3_show_temp()
From: Michael Chan
Date: Thu Mar 28 2024 - 17:49:17 EST
On Thu, Mar 28, 2024 at 12:56 PM Nikita Kiryushin <kiryushin@xxxxxxxx> 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@xxxxxxxx>
Reviewed-by: Michael Chan <michael.chan@xxxxxxxxxxxx>
Thanks. We should eventually migrate to use
hwmon_device_register_with_info() so that we don't have to deal with
these sysfs strings.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature