linux-stable/sound
Takashi Iwai eb0e6ba256 ALSA: ump: Fix -Wformat-truncation warnings
[ Upstream commit 4aa69d64e4 ]

Filling the rawmidi name and substream name can be truncated, and this
leads to spurious compiler warnings due to -Wformat-truncation.
Although the truncation is the expected behavior, it'd be better to
truncate the string within "(...)"

This patch puts the precision specifies to each %s for fitting the
words within the size-limited strings.

Fixes: 5f11dd938f ("ALSA: usb-audio: Attach legacy rawmidi after probing all UMP EPs")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308251844.1FuQYsql-lkp@intel.com/
Link: https://lore.kernel.org/r/20230826072151.23408-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:53:27 +02:00
..
ac97
aoa
arm
atmel
core ALSA: ump: Fix -Wformat-truncation warnings 2023-09-13 09:53:27 +02:00
drivers ALSA: pcmtest: Don't use static storage to track per device data 2023-07-10 08:52:37 +02:00
firewire ALSA: fireface: make read-only const array for model names static 2023-06-28 11:42:55 +02:00
hda ALSA: hda: fix a possible null-pointer dereference due to data race in snd_hdac_regmap_sync() 2023-07-03 10:08:12 +02:00
i2c
isa Merge branch 'for-next' into for-linus 2023-06-26 15:23:23 +02:00
mips
oss
parisc
pci ALSA: ac97: Fix possible error value of *rac97 2023-09-13 09:53:27 +02:00
pcmcia
ppc
sh
soc ASoC: SOF: amd: clear dsp to host interrupt status 2023-09-13 09:53:26 +02:00
sparc
spi
synth ALSA: emu10k1: fix synthesizer pitch for E-MU cards at 44.1 kHz 2023-06-13 07:42:08 +02:00
usb ALSA: usb-audio: Attach legacy rawmidi after probing all UMP EPs 2023-09-13 09:53:27 +02:00
virtio
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: make all 'class' structures const 2023-06-21 07:29:10 +02:00