Skip to contentSkip to conversation

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

PATCH Applied Liam Girdwood 2 participants 2 messages Feb 1, 2016

lore
Share & tools
lore
#0 lore raw

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

Debug log is printing num_regs instead of max in the max section.

---
 src/topology/ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/topology/ctl.c +1 -1
index 1c073f7..c250227 100644
@@ -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;
 		}
 
Signature · 1 line
2.5.0
Applied
#1 lore raw
Quoted 4 lines · Liam Girdwood

Debug log is printing num_regs instead of max in the max section.

Applied, thanks.

Takashi

Quoted 20 lines
---
 src/topology/ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/topology/ctl.c +1 -1
index 1c073f7..c250227 100644
@@ -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;
 		}
 
Signature · 1 line
2.5.0