Skip to contentSkip to conversation

ALSA: HDA: hda_proc: Fix printf format specifier

PATCH New [email protected] 1 participant 1 message Sep 13, 2008 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: HDA: hda_proc: Fix printf format specifier

From: Robin H. Johnson <[email protected]>

The Pincap output had a typod format specifier, leading to an extraneous "08" in the output, which is a reserved bit of the Vref field, and was really confused :-).

sound/pci/hda/hda_proc.c +1 -1
index 4927c4b..743d779 100644
@@ -216,7 +216,7 @@ static void print_pin_caps(struct snd_info_buffer *buffer,
 	unsigned int caps, val;
 
 	caps = snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP);
-	snd_iprintf(buffer, "  Pincap 0x08%x:", caps);
+	snd_iprintf(buffer, "  Pincap 0x%08x:", caps);
 	if (caps & AC_PINCAP_IN)
 		snd_iprintf(buffer, " IN");
 	if (caps & AC_PINCAP_OUT)
Signature · 1 line
1.6.0.1