[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241206021647.2343-1-liujing@cmss.chinamobile.com>
Date: Fri, 6 Dec 2024 10:16:47 +0800
From: liujing <liujing@...s.chinamobile.com>
To: perex@...ex.cz,
tiwai@...e.com,
drhodes@...nsource.cirrus.com,
jbrunet@...libre.com,
broonie@...nel.org
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] ALSA: cmipci: Modify the incorrect format specifier
Replace %d with %u in snprintf() because it is "unsigned int".
Signed-off-by: liujing <liujing@...s.chinamobile.com>
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index e3cac73517d6..cb8593c376ee 100644
--- 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);
--
2.27.0
Powered by blists - more mailing lists