adsp_config: fix invalid format specifier

This patch fixes an invalid format specifier that causes a numeric value
to be interpreted as a string, resulting in an Segmentation fault.

Signed-off-by: Adrian Warecki <adrianx.warecki@intel.com>
This commit is contained in:
Adrian Warecki 2022-01-17 10:42:58 +01:00 committed by Liam Girdwood
parent 8753a9e162
commit ce69d7bad8
1 changed files with 1 additions and 1 deletions

View File

@ -2023,7 +2023,7 @@ static int parse_module(const toml_table_t *toml, struct parse_ctx *pctx,
if (strcmp((char *)mod_man->name, "BRNGUP") &&
strcmp((char *)mod_man->name, "BASEFW")) {
if (type != i - 1) {
log_err(ret, "error: invalid type %s", type);
log_err(ret, "error: invalid type %d", type);
return -EINVAL;
}
}