Skip to content

Commit 702de1c

Browse files
committed
shell: fix build error
In file included from /home/lrg/work/sof2/sof/zephyr/sof_shell.c:14: /home/lrg/work/sof2/sof/zephyr/sof_shell.c: In function 'cmd_sof_module_heap_usage': /home/lrg/work/sof2/sof/zephyr/sof_shell.c:66:77: error: 'struct module_config' has no member named 'heap_bytes' 66 | icd->id, usage, hwm, comp_mod(icd->cd)->priv.cfg.heap_bytes); | ^ /home/lrg/work/sof2/zephyr/include/zephyr/shell/shell.h:1292:47: note: in definition of macro 'shell_print' 1292 | shell_fprintf_normal(_sh, _ft "\n", ##__VA_ARGS__) | ^~~~~~~~~~~ Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent dda2142 commit 702de1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/sof_shell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ static int cmd_sof_module_heap_usage(const struct shell *sh,
6262
continue;
6363

6464
usage = module_adapter_heap_usage(comp_mod(icd->cd), &hwm);
65-
shell_print(sh, "comp id 0x%08x%9zu usage%9zu hwm %9zu max\tbytes",
66-
icd->id, usage, hwm, comp_mod(icd->cd)->priv.cfg.heap_bytes);
65+
shell_print(sh, "comp id 0x%08x%9zu usage%9zu hwm\tbytes",
66+
icd->id, usage, hwm);
6767
}
6868
return 0;
6969
}

0 commit comments

Comments
 (0)