Skip to content

Commit

Permalink
core/flash: Log return code when ffs_init() fails
Browse files Browse the repository at this point in the history
Knowing the return code is at least better than not knowing the return
code.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
amboar authored and stewartsmith committed Nov 2, 2018
1 parent dbdfb0e commit cee7ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static int flash_load_resource(enum resource_id id, uint32_t subid,

rc = ffs_init(0, flash->size, flash->bl, &ffs, 1);
if (rc) {
prerror("FLASH: Can't open ffs handle\n");
prerror("FLASH: Can't open ffs handle: %d\n", rc);
goto out_unlock;
}

Expand Down

0 comments on commit cee7ec9

Please sign in to comment.