aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-11-01 23:17:27 +1030
committerStewart Smith <stewart@linux.ibm.com>2018-11-02 18:17:35 +1100
commit9555cf21ba5bd90d2213020f8354dd7bd33cd4c3 (patch)
treee7d169aebcb7f2dbb08b6a2112991f136a0ed269
parentbec5a5f89adc129ad5681960180674b81002303e (diff)
downloadskiboot-9555cf21ba5bd90d2213020f8354dd7bd33cd4c3.zip
skiboot-9555cf21ba5bd90d2213020f8354dd7bd33cd4c3.tar.gz
skiboot-9555cf21ba5bd90d2213020f8354dd7bd33cd4c3.tar.bz2
core/flash: Log return code when ffs_init() fails
[ Upstream commit cee7ec9eae090e3e9ca6b8f07f40a9ae8164ecab ] 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>
-rw-r--r--core/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/flash.c b/core/flash.c
index 69396cd..5df4195 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -671,7 +671,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;
}