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-subvolume.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmds-subvolume.c') diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 4cd2e0ec..7384de45 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -923,10 +923,10 @@ static int cmd_subvol_show(int argc, char **argv) ret = get_subvol_info(fullpath, &get_ri); if (ret) { if (ret < 0) { - error("Failed to get subvol info %s: %s\n", + error("Failed to get subvol info %s: %s", fullpath, strerror(-ret)); } else { - error("Failed to get subvol info %s: %d\n", + error("Failed to get subvol info %s: %d", fullpath, ret); } return ret; @@ -1234,7 +1234,7 @@ static int cmd_subvol_sync(int argc, char **argv) } if (id < BTRFS_FIRST_FREE_OBJECTID || id > BTRFS_LAST_FREE_OBJECTID) { - error("subvolume id %s out of range\n", arg); + error("subvolume id %s out of range", arg); ret = 1; goto out; } -- cgit v1.2.3