]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Replace sprintf() with sysfs_emit()
authorTakashi Iwai <tiwai@suse.de>
Mon, 1 Aug 2022 16:56:37 +0000 (18:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Aug 2022 14:03:46 +0000 (16:03 +0200)
commit6d2381502597edd6610118eec74a5de68f1e7814
tree5d4302114c9c1226c27db0f9f3b5f670aac71e27
parent804c198f210eef15298dc722107485f6acefcb0b
ALSA: pcm: Replace sprintf() with sysfs_emit()

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.

Link: https://lore.kernel.org/r/20220801165639.26030-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c