mirror of https://github.com/thesofproject/sof.git
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:
parent
8753a9e162
commit
ce69d7bad8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue