[Skiboot] [PATCH 4/4] core/flash: Log return code when ffs_init() fails

Andrew Jeffery andrew at aj.id.au
Thu Nov 1 23:47:27 AEDT 2018


Knowing the return code is at least better than not knowing the return
code.

Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/flash.c b/core/flash.c
index 11824a449449..08d69edc7e45 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -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;
 	}
 
-- 
2.19.1



More information about the Skiboot mailing list