From 86d2e4b64b2aacbf4b0c610d06375a01233c5bc4 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 28 Oct 2016 18:47:35 +0200 Subject: btrfs-progs: remove extra newline from messages The common message helpers add the newline. Signed-off-by: David Sterba --- cmds-receive.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmds-receive.c') diff --git a/cmds-receive.c b/cmds-receive.c index 781dce9b..63807d03 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -101,7 +101,7 @@ static int finish_subvol(struct btrfs_receive *r) O_RDONLY | O_NOATIME); if (subvol_fd < 0) { ret = -errno; - error("cannot open %s: %s\n", + error("cannot open %s: %s", r->cur_subvol_path, strerror(-ret)); goto out; } @@ -184,7 +184,7 @@ static int process_subvol(const char *path, const u8 *uuid, u64 ctransid, } else { ret = path_cat_out(r->cur_subvol_path, r->dest_dir_path, path); if (ret < 0) { - error("subvol: path invalid: %s\n", path); + error("subvol: path invalid: %s", path); goto out; } } @@ -707,7 +707,7 @@ static int process_write(const char *path, const void *data, u64 offset, offset + pos); if (w < 0) { ret = -errno; - error("writing to %s failed: %s\n", + error("writing to %s failed: %s", path, strerror(-ret)); goto out; } @@ -793,7 +793,7 @@ static int process_clone(const char *path, u64 offset, u64 len, ret = ioctl(r->write_fd, BTRFS_IOC_CLONE_RANGE, &clone_args); if (ret < 0) { ret = -errno; - error("failed to clone extents to %s\n%s\n", + error("failed to clone extents to %s\n%s", path, strerror(-ret)); goto out; } -- cgit v1.2.3