Skip to content

Commit c78c881

Browse files
committed
ALSA: drivers: pcsp: Fix printout of resolution
The recent conversion of the hrtimer resolution failed to convert the printk format from %li to %u. Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 6b442bc commit c78c881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/drivers/pcsp/pcsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int snd_pcsp_create(struct snd_card *card)
4848
if (!nopcm) {
4949
if (resolution > PCSP_MAX_PERIOD_NS) {
5050
printk(KERN_ERR "PCSP: Timer resolution is not sufficient "
51-
"(%linS)\n", resolution);
51+
"(%unS)\n", resolution);
5252
printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI "
5353
"enabled.\n");
5454
printk(KERN_ERR "PCSP: Turned into nopcm mode.\n");
@@ -61,7 +61,7 @@ static int snd_pcsp_create(struct snd_card *card)
6161
else
6262
min_div = MAX_DIV;
6363
#if PCSP_DEBUG
64-
printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%li\n",
64+
printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%u\n",
6565
loops_per_jiffy, min_div, resolution);
6666
#endif
6767

0 commit comments

Comments
 (0)