Browse Source

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 <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thomas Gleixner 10 years ago
parent
commit
c78c881824
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sound/drivers/pcsp/pcsp.c

+ 2 - 2
sound/drivers/pcsp/pcsp.c

@@ -48,7 +48,7 @@ static int snd_pcsp_create(struct snd_card *card)
 	if (!nopcm) {
 	if (!nopcm) {
 		if (resolution > PCSP_MAX_PERIOD_NS) {
 		if (resolution > PCSP_MAX_PERIOD_NS) {
 			printk(KERN_ERR "PCSP: Timer resolution is not sufficient "
 			printk(KERN_ERR "PCSP: Timer resolution is not sufficient "
-				"(%linS)\n", resolution);
+				"(%unS)\n", resolution);
 			printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI "
 			printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI "
 				"enabled.\n");
 				"enabled.\n");
 			printk(KERN_ERR "PCSP: Turned into nopcm mode.\n");
 			printk(KERN_ERR "PCSP: Turned into nopcm mode.\n");
@@ -61,7 +61,7 @@ static int snd_pcsp_create(struct snd_card *card)
 	else
 	else
 		min_div = MAX_DIV;
 		min_div = MAX_DIV;
 #if PCSP_DEBUG
 #if PCSP_DEBUG
-	printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%li\n",
+	printk(KERN_DEBUG "PCSP: lpj=%li, min_div=%i, res=%u\n",
 	       loops_per_jiffy, min_div, resolution);
 	       loops_per_jiffy, min_div, resolution);
 #endif
 #endif