rimage: show correct error on write failure.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
1b0a663b0d
commit
321aa0504d
|
@ -159,7 +159,8 @@ int byt_write_modules(struct image *image)
|
|||
|
||||
count = fwrite(&hdr, sizeof(hdr), 1, image->out_fd);
|
||||
if (count != 1) {
|
||||
fprintf(stderr, "error: failed to write section header %d\n", i);
|
||||
fprintf(stderr, "error: failed to write section header %d\n",
|
||||
-errno);
|
||||
return -errno ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue