diff options
author | Takashi Iwai <tiwai@suse.de> | 2023-08-26 09:21:51 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-08-26 09:22:18 +0200 |
commit | 4aa69d64e43edb51a4ecff7d301e9f881eb2d3f5 (patch) | |
tree | cec7340bb7307cbd0ccd4e94a33a9e517d62b884 /net/unix/af_unix.c | |
parent | 61698d3fbdcd36b65ab524183c73de8bc0693a1f (diff) |
ALSA: ump: Fix -Wformat-truncation warnings
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: 5f11dd938fe7 ("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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions