Skip to contentSkip to conversation

sound: usb: Fix format string mismatch in mixer.c

PATCH Applied Masanari Iida 2 participants 2 messages Apr 28, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: usb: Fix format string mismatch in mixer.c

Fix format string mismatch in parse_audio_selector_unit().

---
 sound/usb/mixer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/mixer.c +1 -1
index d40a285..6fe83e4 100644
@@ -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);
Signature · 1 line
2.0.0.rc1
Applied
#1 lore raw

At Mon, 28 Apr 2014 13:08:55 +0900,

Quoted 4 lines · Masanari Iida

Fix format string mismatch in parse_audio_selector_unit().

Thanks, applied.

Takashi

Quoted 20 lines
---
 sound/usb/mixer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/mixer.c +1 -1
index d40a285..6fe83e4 100644
@@ -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);
Signature · 1 line
2.0.0.rc1