diff mbox series

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

Message ID 20180315055827.8999-16-cyril.bur@au1.ibm.com
State Accepted
Headers show
Series libffs and ffspart rework | expand

Commit Message

Cyril Bur March 15, 2018, 5:58 a.m. UTC
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
---
 external/ffspart/ffspart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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;
 		}