diff options
author | Qing Wang <wangqing@vivo.com> | 2021-10-14 23:49:04 -0700 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-05-04 19:37:45 +1000 |
commit | cc4639989e93f5be6445e1466937e0a455f9bd88 (patch) | |
tree | 66545be2021d02fb9654af84d775131a2124cf8a /lib/kunit | |
parent | 5749e7c1aa8c25ca11a8c8cac71d1a052231ef51 (diff) | |
download | linux-cc4639989e93f5be6445e1466937e0a455f9bd88.tar.gz linux-cc4639989e93f5be6445e1466937e0a455f9bd88.tar.bz2 linux-cc4639989e93f5be6445e1466937e0a455f9bd88.zip |
macintosh/ams: Replace snprintf in show functions with sysfs_emit
show() must not use snprintf() when formatting the value to be returned
to user space.
Fix the following coccicheck warning:
drivers/macintosh/ams/ams-core.c:53: WARNING: use scnprintf or sprintf.
Use sysfs_emit instead of scnprintf or sprintf makes more sense.
Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1634280544-4581-1-git-send-email-wangqing@vivo.com
Diffstat (limited to 'lib/kunit')
0 files changed, 0 insertions, 0 deletions