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:
Adrian Warecki 2023-11-14 15:04:44 +01:00 committed by Kai Vehmanen
parent 2b23146df6
commit 2b4e484427
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ int module_write_whole_elf(const struct module *module, FILE *out_file, const ch
/* write out section data */
count = fwrite(buffer, module->elf.file_size, 1, out_file);
if (count != 1) {
ret = file_error("can't write data", "");// TODO: image->out_file);
ret = file_error("can't write data", filename);
goto out;
}