diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-05-20 17:05:52 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-20 17:08:00 +0200 |
commit | b3b778b387ed3849ebc4a51baf8617be90df6625 (patch) | |
tree | 05fb54ad5b0bf9e0f6aee9da73d5da19e953611a /sound/drivers/pcsp | |
parent | 5a641bcd6398841cc4606b0a732d41a09256fd94 (diff) | |
download | linux-b3b778b387ed3849ebc4a51baf8617be90df6625.tar.bz2 |
ALSA: pcsp - fix printk format warning again
The commit 5a641bcd6398841cc4606b0a732d41a09256fd94 changed the
printk format to '%lu', but the value passed seems to be dependent
on the architecture. On x86-64, I got a new warning now because an
int value is passed actaully.
As a workaround, just cast the value always to unsigned long.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/pcsp')
-rw-r--r-- | sound/drivers/pcsp/pcsp_mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/pcsp/pcsp_mixer.c b/sound/drivers/pcsp/pcsp_mixer.c index 771955a9be71..199b03377142 100644 --- a/sound/drivers/pcsp/pcsp_mixer.c +++ b/sound/drivers/pcsp/pcsp_mixer.c @@ -51,7 +51,7 @@ static int pcsp_treble_info(struct snd_kcontrol *kcontrol, if (uinfo->value.enumerated.item > chip->max_treble) uinfo->value.enumerated.item = chip->max_treble; sprintf(uinfo->value.enumerated.name, "%lu", - PCSP_CALC_RATE(uinfo->value.enumerated.item)); + (unsigned long)PCSP_CALC_RATE(uinfo->value.enumerated.item)); return 0; } |