From 44729d133c846692fdf20fe980038546e60c39ab Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 26 Jul 2009 15:50:00 +0300 Subject: 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 --- ubi-utils/src/ubiformat.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ubi-utils/src') 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) -- cgit v1.2.3