Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3b778b3 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: pcsp - fix printk format warning again



The commit 5a641bcd 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: default avatarTakashi Iwai <tiwai@suse.de>
parent 5a641bcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}