mirror of https://github.com/thesofproject/sof.git
rimage: module: Use file name in error message in module_write_whole_elf
By oversight, the error message did not use the file name passed as a parameter to the module_write_whole_elf function. Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
This commit is contained in:
parent
2b23146df6
commit
2b4e484427
|
@ -98,7 +98,7 @@ int module_write_whole_elf(const struct module *module, FILE *out_file, const ch
|
||||||
/* write out section data */
|
/* write out section data */
|
||||||
count = fwrite(buffer, module->elf.file_size, 1, out_file);
|
count = fwrite(buffer, module->elf.file_size, 1, out_file);
|
||||||
if (count != 1) {
|
if (count != 1) {
|
||||||
ret = file_error("can't write data", "");// TODO: image->out_file);
|
ret = file_error("can't write data", filename);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue