From: Darrick J. Wong Date: Thu, 4 Feb 2016 21:40:42 +0000 (+1100) Subject: xfs_io: print dedupe errors to stderr, not stdout X-Git-Tag: v4.5.0-rc1~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcb416e17b5e9228a242e8fcc1029f356b2aa32d;p=thirdparty%2Fxfsprogs-dev.git xfs_io: print dedupe errors to stderr, not stdout Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/io/reflink.c b/io/reflink.c index def01be2f..a09e82dca 100644 --- a/io/reflink.c +++ b/io/reflink.c @@ -78,11 +78,13 @@ dedupe_ioctl( goto done; } if (info->status < 0) { - printf("dedupe: %s\n", _(strerror(-info->status))); + fprintf(stderr, "dedupe: %s\n", + _(strerror(-info->status))); goto done; } if (info->status == XFS_EXTENT_DATA_DIFFERS) { - printf(_("Extents did not match.\n")); + fprintf(stderr, "dedupe: %s\n", + _("Extents did not match.")); goto done; } if (args->length != 0 &&