Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: cmipci: Modify the incorrect format specifier

Replace %d with %u in snprintf() because it is "unsigned int".

Signed-off-by: liujing <liujing@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241206021647.2343-1-liujing@cmss.chinamobile.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

liujing and committed by
Takashi Iwai
4ad94788 9ad11a3e

+1 -1
+1 -1
sound/pci/cmipci.c
··· 3084 3084 } 3085 3085 } 3086 3086 } 3087 - sprintf(card->shortname, "C-Media CMI%d", val); 3087 + sprintf(card->shortname, "C-Media CMI%u", val); 3088 3088 if (cm->chip_version < 68) 3089 3089 scnprintf(modelstr, sizeof(modelstr), 3090 3090 " (model %d)", cm->chip_version);