Skip to content
Commit 7bc9ab0f authored by Qing Wang's avatar Qing Wang Committed by Marc Kleine-Budde
Browse files

can: at91/janz-ican3: replace snprintf() in show functions with sysfs_emit()

The sysfs show() functions must not use snprintf() when formatting the
value to be returned to user space.

Fix the following coccicheck warning:
| drivers/net/can/at91_can.c:1185: WARNING: use scnprintf or sprintf.
| drivers/net/can/janz-ican3.c:1834: WARNING: use scnprintf or sprintf.
|
| Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Link: https://lore.kernel.org/all/1634280624-4816-1-git-send-email-wangqing@vivo.com


Signed-off-by: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent fa759a93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment