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>
This commit is contained in:
liujing 2024-12-06 10:16:47 +08:00 committed by Takashi Iwai
parent 9ad11a3e1b
commit 4ad947884c

View File

@ -3084,7 +3084,7 @@ static int snd_cmipci_create(struct snd_card *card, struct pci_dev *pci,
}
}
}
sprintf(card->shortname, "C-Media CMI%d", val);
sprintf(card->shortname, "C-Media CMI%u", val);
if (cm->chip_version < 68)
scnprintf(modelstr, sizeof(modelstr),
" (model %d)", cm->chip_version);