diff mbox

ALSA: fireworks: fix specifiers in format strings for propper output

Message ID 1407205030-12568-1-git-send-email-o-takashi@sakamocchi.jp (mailing list archive)
State Accepted
Commit 30225ed5ca9e8f713fe8e92859f698c5e82a429c
Delegated to: Takashi Iwai
Headers show

Commit Message

Takashi Sakamoto Aug. 5, 2014, 2:17 a.m. UTC
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>
---
 sound/firewire/fireworks/fireworks_proc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Takashi Iwai Aug. 5, 2014, 7:15 a.m. UTC | #1
At Tue,  5 Aug 2014 11:17:10 +0900,
Takashi Sakamoto wrote:
> 
> 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>

Applied, thanks.


Takashi


> ---
>  sound/firewire/fireworks/fireworks_proc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/firewire/fireworks/fireworks_proc.c b/sound/firewire/fireworks/fireworks_proc.c
> index 02bf394..0639dcb 100644
> --- a/sound/firewire/fireworks/fireworks_proc.c
> +++ b/sound/firewire/fireworks/fireworks_proc.c
> @@ -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);
>  	}
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/sound/firewire/fireworks/fireworks_proc.c b/sound/firewire/fireworks/fireworks_proc.c
index 02bf394..0639dcb 100644
--- a/sound/firewire/fireworks/fireworks_proc.c
+++ b/sound/firewire/fireworks/fireworks_proc.c
@@ -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);
 	}