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 --- image/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'image') diff --git a/image/main.c b/image/main.c index 066baf99..c464b650 100644 --- a/image/main.c +++ b/image/main.c @@ -2156,7 +2156,7 @@ static int search_for_chunk_blocks(struct mdrestore_struct *mdres, bytenr = current_cluster; while (1) { if (fseek(mdres->in, current_cluster, SEEK_SET)) { - error("seek failed: %s\n", strerror(errno)); + error("seek failed: %s", strerror(errno)); ret = -EIO; break; } @@ -2303,7 +2303,7 @@ static int build_chunk_tree(struct mdrestore_struct *mdres, break; bytenr += le32_to_cpu(item->size); if (fseek(mdres->in, le32_to_cpu(item->size), SEEK_CUR)) { - error("seek failed: %s\n", strerror(errno)); + error("seek failed: %s", strerror(errno)); return -EIO; } } @@ -2546,7 +2546,7 @@ static int restore_metadump(const char *input, FILE *out, int old_restore, } if (in != stdin && fseek(in, 0, SEEK_SET)) { - error("seek failed: %s\n", strerror(errno)); + error("seek failed: %s", strerror(errno)); goto out; } -- cgit v1.2.3