summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 15:50:00 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 15:50:00 +0300
commit44729d133c846692fdf20fe980038546e60c39ab (patch)
tree26e7aced6cb6be98ebf212a26189cbd37fbb8c93
parent1c54e49e41c10306f6316aaf4d0380f605cb29c5 (diff)
ubiformat: nicify error output
Do not print extra newline if write fails, because mtd_write prints a message and adds newline. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--ubi-utils/src/ubiformat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c
index d0def44..3807102 100644
--- a/ubi-utils/src/ubiformat.c
+++ b/ubi-utils/src/ubiformat.c
@@ -522,8 +522,6 @@ static int flash_image(const struct mtd_dev_info *mtd, struct ubi_scan_info *si)
err = mtd_write(mtd, args.node_fd, eb, 0, buf, new_len);
if (err) {
- if (!args.quiet)
- printf("\n");
sys_errmsg("cannot write eraseblock %d", eb);
if (errno != EIO)