diff options
author | David Sterba <dsterba@suse.com> | 2016-10-28 18:47:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:34 +0100 |
commit | 86d2e4b64b2aacbf4b0c610d06375a01233c5bc4 (patch) | |
tree | 6fad501f607026600cb1414a56a345b64b902b08 /cmds-receive.c | |
parent | a2883ea16d15ce02c3279f835736e5072dd6e709 (diff) |
btrfs-progs: remove extra newline from messages
The common message helpers add the newline.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r-- | cmds-receive.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |