Skip to content

Commit 4ad9478

Browse files
liujingtiwai
authored andcommitted
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>
1 parent 9ad11a3 commit 4ad9478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/pci/cmipci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3084,7 +3084,7 @@ static int snd_cmipci_create(struct snd_card *card, struct pci_dev *pci,
30843084
}
30853085
}
30863086
}
3087-
sprintf(card->shortname, "C-Media CMI%d", val);
3087+
sprintf(card->shortname, "C-Media CMI%u", val);
30883088
if (cm->chip_version < 68)
30893089
scnprintf(modelstr, sizeof(modelstr),
30903090
" (model %d)", cm->chip_version);

0 commit comments

Comments
 (0)