From f32b82ba9893dd55ae104090668b200887cd78cc Mon Sep 17 00:00:00 2001 From: Tsutomu Itoh Date: Fri, 7 Aug 2015 09:20:25 +0900 Subject: btrfs-progs: add newline to some error messages Added a missing newline to some error messages. Also printf() was changed to fprintf(stderr) for error messages. Signed-off-by: Tsutomu Itoh Reviewed-by: Zhao Lei Signed-off-by: David Sterba --- cmds-send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds-send.c') diff --git a/cmds-send.c b/cmds-send.c index 95fd4aa..581b25e 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -198,13 +198,13 @@ static int write_buf(int fd, const void *buf, int size) ret = write(fd, (char*)buf + pos, size - pos); if (ret < 0) { ret = -errno; - fprintf(stderr, "ERROR: failed to dump stream. %s", + fprintf(stderr, "ERROR: failed to dump stream. %s\n", strerror(-ret)); goto out; } if (!ret) { ret = -EIO; - fprintf(stderr, "ERROR: failed to dump stream. %s", + fprintf(stderr, "ERROR: failed to dump stream. %s\n", strerror(-ret)); goto out; } -- cgit v1.2.1