projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad11a3
)
ALSA: cmipci: Modify the incorrect format specifier
author
liujing
<liujing@cmss.chinamobile.com>
Fri, 6 Dec 2024 02:16:47 +0000
(10:16 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 6 Dec 2024 12:49:40 +0000
(13:49 +0100)
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>
sound/pci/cmipci.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/cmipci.c
b/sound/pci/cmipci.c
index e3cac73517d68eea50d9b7f7d2457ab759919ffe..cb8593c376eeb4e21786f01e86bf3edc9f99e22d 100644
(file)
--- a/
sound/pci/cmipci.c
+++ b/
sound/pci/cmipci.c
@@
-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);