Skip to content

Commit

Permalink
rimage: module: Use file name in error message in module_write_whole_elf
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
softwarecki committed Nov 27, 2023
1 parent e4637a3 commit 202693a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rimage/src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 202693a

Please sign in to comment.