]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ALSA: pcsp: fix printk format warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 14 May 2009 15:49:13 +0000 (08:49 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 May 2009 16:03:10 +0000 (18:03 +0200)
Fix printk format warning:

sound/drivers/pcsp/pcsp_mixer.c:54: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcsp/pcsp_mixer.c

index caeb0f57fccaf1cfeb6f295dc9b871cd00171ade..771955a9be713a14b7da99472b8adc9a0c0706a4 100644 (file)
@@ -50,7 +50,7 @@ static int pcsp_treble_info(struct snd_kcontrol *kcontrol,
        uinfo->value.enumerated.items = chip->max_treble + 1;
        if (uinfo->value.enumerated.item > chip->max_treble)
                uinfo->value.enumerated.item = chip->max_treble;
-       sprintf(uinfo->value.enumerated.name, "%d",
+       sprintf(uinfo->value.enumerated.name, "%lu",
                        PCSP_CALC_RATE(uinfo->value.enumerated.item));
        return 0;
 }