[Skiboot] [PATCH 15/15] external/ffspart: Improve error output

Cyril Bur cyril.bur at au1.ibm.com
Thu Mar 15 16:58:27 AEDT 2018


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 external/ffspart/ffspart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/external/ffspart/ffspart.c b/external/ffspart/ffspart.c
index 7fd78e99..d737e302 100644
--- a/external/ffspart/ffspart.c
+++ b/external/ffspart/ffspart.c
@@ -226,8 +226,8 @@ static int parse_entry(struct blocklevel_device *bl,
 		}
 		rc = ffs_entry_add(tocs[toc], new_entry);
 		if (rc) {
-			fprintf(stderr, "Couldn't add '%s' parition to TOC %d\n",
-					name, toc);
+			fprintf(stderr, "Couldn't add '%s' partition to TOC %d: %d\n",
+					name, toc, rc);
 			ffs_entry_put(new_entry);
 			return rc;
 		}
-- 
2.16.2



More information about the Skiboot mailing list