summaryrefslogtreecommitdiff
path: root/image/main.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-10-28 18:47:35 +0200
committerDavid Sterba <dsterba@suse.com>2016-12-14 15:06:34 +0100
commit86d2e4b64b2aacbf4b0c610d06375a01233c5bc4 (patch)
tree6fad501f607026600cb1414a56a345b64b902b08 /image/main.c
parenta2883ea16d15ce02c3279f835736e5072dd6e709 (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 'image/main.c')
-rw-r--r--image/main.c6
1 files changed, 3 insertions, 3 deletions
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;
}