From: Gui Hecheng Date: Mon, 1 Sep 2014 01:47:33 +0000 (+0800) Subject: btrfs-progs: move debug info to verbose mode for restore X-Git-Tag: upstream/4.16.1~2719 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=101a8e1326637d9da727f234722abe305d1729fd;p=platform%2Fupstream%2Fbtrfs-progs.git 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 Signed-off-by: David Sterba --- diff --git a/cmds-restore.c b/cmds-restore.c index ff2b3fb..dc6c027 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)