Messages in this thread | | | Date | Sun, 7 Aug 2022 11:03:00 +0200 | From | Uwe Kleine-König <> | Subject | Re: [PATCH v1 3/4] pwm: sysfs: Replace sprintf() with sysfs_emit() |
| |
Hello,
On Sun, Aug 07, 2022 at 12:23:30AM +0300, Andy Shevchenko wrote: > For sysfs outputs, it's safer to use a new helper, sysfs_emit(), > instead of the raw sprintf() & co. This patch replaces such a > sprintf() call straightforwardly with the new helper.
TIL!
There is no actual harm in using sprintf, but for consistency and to provide a good reference for copying, conversion to sysfs_emit() seems sensible.
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Best regards Uwe
-- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [unhandled content-type:application/pgp-signature] | |