Skip to contentSkip to conversation

Fix format warning in sound/isa/ad1848/ad1848_lib.c

PATCH In review Gabriel C 2 participants 2 messages Oct 31, 2007 Sound

lore
Share & tools
lore

Gabriel C

author
#0 lore raw

PATCH 1/1 Fix format warning in sound/isa/ad1848/ad1848_lib.c

Hi,

I see this warning on current git head :

...

sound/isa/ad1848/ad1848_lib.c: In function 'snd_ad1848_mce_down':
sound/isa/ad1848/ad1848_lib.c:216: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

...

---

 sound/isa/ad1848/ad1848_lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/isa/ad1848/ad1848_lib.c +1 -1
index a901cd1..9a64035 100644
@@ -213,7 +213,7 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip)
 	for (timeout = 12000; timeout > 0 && (inb(AD1848P(chip, REGSEL)) & AD1848_INIT); timeout--)
 		udelay(100);
 
-	snd_printdd("(1) timeout = %d\n", timeout);
+	snd_printdd("(1) timeout = %ld\n", timeout);
 
 #ifdef CONFIG_SND_DEBUG
 	if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
#1 lore raw

At Wed, 31 Oct 2007 15:11:03 +0100,

Quoted 5 lines · Gabriel C

Hi,

I see this warning on current git head :

Quoted 8 lines

...

sound/isa/ad1848/ad1848_lib.c: In function 'snd_ad1848_mce_down':
sound/isa/ad1848/ad1848_lib.c:216: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

...

The fix has been in ALSA tree since a week ago... Sigh.

Jaroslav, please prepare the push?

thanks,

Takashi

Quoted 26 lines

---

 sound/isa/ad1848/ad1848_lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/isa/ad1848/ad1848_lib.c +1 -2
index a901cd1..9a64035 100644
@@ -213,7 +213,7 @@ static void snd_ad1848_mce_down(struct snd_ad1848 *chip)
 	for (timeout = 12000; timeout > 0 && (inb(AD1848P(chip, REGSEL)) & AD1848_INIT); timeout--)
 		udelay(100);
 
-	snd_printdd("(1) timeout = %d\n", timeout);
+	snd_printdd("(1) timeout = %ld\n", timeout);
 
 #ifdef CONFIG_SND_DEBUG
 	if (inb(AD1848P(chip, REGSEL)) & AD1848_INIT)
 
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/