ALSA: fireworks: fix specifiers in format strings for propper output
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 5 Aug 2014 02:17:10 +0000 (11:17 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Aug 2014 07:15:20 +0000 (09:15 +0200)
Use %d for loop counter and %X for device capabilities. This is a
supplemental patch for Hans Wennborg's patch.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireworks/fireworks_proc.c

index 02bf394fb1b360dde731e88156e37ce071f11a43..0639dcb13f7df76ab2199259716bd22ba2e308de 100644 (file)
@@ -64,7 +64,7 @@ proc_read_hwinfo(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
                    hwinfo->phys_in_grp_count);
        for (i = 0; i < hwinfo->phys_in_grp_count; i++) {
                snd_iprintf(buffer,
-                           "phys in grp[0x%d]: type 0x%d, count 0x%x\n",
+                           "phys in grp[%d]: type 0x%X, count 0x%X\n",
                            i, hwinfo->phys_out_grps[i].type,
                            hwinfo->phys_out_grps[i].count);
        }
@@ -73,7 +73,7 @@ proc_read_hwinfo(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
                    hwinfo->phys_out_grp_count);
        for (i = 0; i < hwinfo->phys_out_grp_count; i++) {
                snd_iprintf(buffer,
-                           "phys out grps[0x%d]: type 0x%d, count 0x%x\n",
+                           "phys out grps[%d]: type 0x%X, count 0x%X\n",
                            i, hwinfo->phys_out_grps[i].type,
                            hwinfo->phys_out_grps[i].count);
        }