btrfs-progs: don't output operational status information to stderr
authorXing Gu <gux.fnst@cn.fujitsu.com>
Mon, 26 Jan 2015 08:26:38 +0000 (16:26 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 27 Jan 2015 15:48:44 +0000 (16:48 +0100)
Signed-off-by: Xing Gu <gux.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
utils.c

diff --git a/utils.c b/utils.c
index a818950..6228c7f 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -746,7 +746,7 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret,
                 * optimization.
                 */
                if (discard_range(fd, 0, 0) == 0) {
-                       fprintf(stderr, "Performing full device TRIM (%s) ...\n",
+                       printf("Performing full device TRIM (%s) ...\n",
                                pretty_size(block_count));
                        discard_blocks(fd, 0, block_count);
                }