ALSA: scarlett2: Fix yet more -Wformat-truncation warnings
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Jan 2024 17:10:00 +0000 (18:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jan 2024 11:41:14 +0000 (12:41 +0100)
commit3787ffdd13de81ba406e5b42c6c24f823395ba5e
tree1be6132a3ee637c0f156361c6e02780a86371ff2
parent454abb80e26ab85323a30e52aa7b0ee9aae1d38a
ALSA: scarlett2: Fix yet more -Wformat-truncation warnings

The recent code change introduced a few false-positive compile
warnings with -Wformat-trucation again.  Suppress them by replacing
snprintf() with scnprintf().

Fixes: 0a995e38dc44 ("ALSA: scarlett2: Add support for software-controllable input gain")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401062344.AzZCYlpa-lkp@intel.com/
Link: https://lore.kernel.org/r/20240112171000.31855-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c