diff mbox

topology: fix debug output to print correct "max" value.

Message ID 1457942858-5652-1-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liam Girdwood March 14, 2016, 8:07 a.m. UTC
Debug log is printing num_regs instead of max in the max section.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 src/topology/ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai March 14, 2016, 3:56 p.m. UTC | #1
On Mon, 14 Mar 2016 09:07:34 +0100,
Liam Girdwood wrote:
> 
> Debug log is printing num_regs instead of max in the max section.
> 
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

This one was already merged.


thanks,

Takashi

> ---
>  src/topology/ctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/topology/ctl.c b/src/topology/ctl.c
> index 1c073f7..c250227 100644
> --- a/src/topology/ctl.c
> +++ b/src/topology/ctl.c
> @@ -350,7 +350,7 @@ int tplg_parse_control_bytes(snd_tplg_t *tplg,
>  				return -EINVAL;
>  
>  			be->max = atoi(val);
> -			tplg_dbg("\t%s: %d\n", id, be->num_regs);
> +			tplg_dbg("\t%s: %d\n", id, be->max);
>  			continue;
>  		}
>  
> -- 
> 2.5.0
>
diff mbox

Patch

diff --git a/src/topology/ctl.c b/src/topology/ctl.c
index 1c073f7..c250227 100644
--- a/src/topology/ctl.c
+++ b/src/topology/ctl.c
@@ -350,7 +350,7 @@  int tplg_parse_control_bytes(snd_tplg_t *tplg,
 				return -EINVAL;
 
 			be->max = atoi(val);
-			tplg_dbg("\t%s: %d\n", id, be->num_regs);
+			tplg_dbg("\t%s: %d\n", id, be->max);
 			continue;
 		}