summaryrefslogtreecommitdiff
path: root/cmds-restore.c
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-09-01 09:47:33 +0800
committerDavid Sterba <dsterba@suse.cz>2014-09-02 17:05:07 +0200
commit101a8e1326637d9da727f234722abe305d1729fd (patch)
tree5dfb485826b640630617832e5fc7fd5b6265230d /cmds-restore.c
parent68b50d43c0bcaab3fb110b2213aef229d68532d3 (diff)
btrfs-progs: move debug info to verbose mode for restore
The restore tool should only print info of the restoring process in verbose mode with -v option specified. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-restore.c')
-rw-r--r--cmds-restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-restore.c b/cmds-restore.c
index ff2b3fbc..dc6c0274 100644
--- a/cmds-restore.c
+++ b/cmds-restore.c
@@ -307,7 +307,7 @@ static int copy_one_extent(struct btrfs_root *root, int fd,
if (compress == BTRFS_COMPRESS_NONE)
bytenr += offset;
- if (offset)
+ if (verbose && offset)
printf("offset is %Lu\n", offset);
/* we found a hole */
if (disk_size == 0)