ALSA: ump: Shut up truncated string warning
authorTakashi Iwai <tiwai@suse.de>
Sat, 30 Nov 2024 09:00:08 +0000 (10:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 30 Nov 2024 09:02:44 +0000 (10:02 +0100)
commited990c07af70d286f5736021c6e25d8df6f2f7b0
treebed792336c62bdabe5269c4d679104268d71821a
parent9b5f8ee43e48c25fbe1a10163ec04343d750acd0
ALSA: ump: Shut up truncated string warning

The recent change for the legacy substream name update brought a
compile warning for some compilers due to the nature of snprintf().
Use scnprintf() to shut up the warning since the truncation is
intentional.

Fixes: e29e504e7890 ("ALSA: ump: Indicate the inactive group in legacy substream names")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411300103.FrGuTAYp-lkp@intel.com/
Link: https://patch.msgid.link/20241130090009.19849-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump.c