summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2016-11-16 12:54:32 -0800
committerDavid Sterba <dsterba@suse.com>2016-11-23 11:07:05 +0100
commit776cd164b73092ec559a47080ff44aa22bad97a1 (patch)
treeeb0f351248d97d86d9a2f7a8833ee4ed692d8b86
parentfc4a8280611f4da6fc73f14468465d67807f9e7c (diff)
btrfs-progs: check: fix missing newlines
Also, the other progress messages go to stderr, so "checking extents" probably should, as well. Fixes: c7a1f66a205f ("btrfs-progs: check: switch some messages to common helpers") Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-check.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 9f77e944..6ce6716e 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -11490,13 +11490,14 @@ int cmd_check(int argc, char **argv)
}
if (!ctx.progress_enabled)
- printf("checking extents");
+ fprintf(stderr, "checking extents\n");
if (check_mode == CHECK_MODE_LOWMEM)
ret = check_chunks_and_extents_v2(root);
else
ret = check_chunks_and_extents(root);
if (ret)
- printf("Errors found in extent allocation tree or chunk allocation");
+ error(
+ "errors found in extent allocation tree or chunk allocation");
ret = repair_root_items(info);
if (ret < 0)