* [PATCH] sound: usb: Fix format string mismatch in mixer.c
@ 2014-04-28 4:08 Masanari Iida
2014-04-28 10:19 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Masanari Iida @ 2014-04-28 4:08 UTC (permalink / raw)
To: perex, tiwai, alsa-devel, linux-kernel; +Cc: Masanari Iida
Fix format string mismatch in parse_audio_selector_unit().
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
sound/usb/mixer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index d40a285..6fe83e4 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1986,7 +1986,7 @@ static int parse_audio_selector_unit(struct mixer_build *state, int unitid, void
if (! len && check_input_term(state, desc->baSourceID[i], &iterm) >= 0)
len = get_term_name(state, &iterm, namelist[i], MAX_ITEM_NAME_LEN, 0);
if (! len)
- sprintf(namelist[i], "Input %d", i);
+ sprintf(namelist[i], "Input %u", i);
}
kctl = snd_ctl_new1(&mixer_selectunit_ctl, cval);
--
2.0.0.rc1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sound: usb: Fix format string mismatch in mixer.c
2014-04-28 4:08 [PATCH] sound: usb: Fix format string mismatch in mixer.c Masanari Iida
@ 2014-04-28 10:19 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2014-04-28 10:19 UTC (permalink / raw)
To: Masanari Iida; +Cc: perex, alsa-devel, linux-kernel
At Mon, 28 Apr 2014 13:08:55 +0900,
Masanari Iida wrote:
>
> Fix format string mismatch in parse_audio_selector_unit().
>
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Thanks, applied.
Takashi
> ---
> sound/usb/mixer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
> index d40a285..6fe83e4 100644
> --- a/sound/usb/mixer.c
> +++ b/sound/usb/mixer.c
> @@ -1986,7 +1986,7 @@ static int parse_audio_selector_unit(struct mixer_build *state, int unitid, void
> if (! len && check_input_term(state, desc->baSourceID[i], &iterm) >= 0)
> len = get_term_name(state, &iterm, namelist[i], MAX_ITEM_NAME_LEN, 0);
> if (! len)
> - sprintf(namelist[i], "Input %d", i);
> + sprintf(namelist[i], "Input %u", i);
> }
>
> kctl = snd_ctl_new1(&mixer_selectunit_ctl, cval);
> --
> 2.0.0.rc1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-28 10:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28 4:08 [PATCH] sound: usb: Fix format string mismatch in mixer.c Masanari Iida
2014-04-28 10:19 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®