From: Darrick J. Wong Date: Thu, 12 Jan 2017 20:12:40 +0000 (-0600) Subject: xfs_io: prefix dedupe command error messages consistently X-Git-Tag: v4.10.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca36c2a85bcac0671d05286e7074c73e239ac53;p=thirdparty%2Fxfsprogs-dev.git xfs_io: prefix dedupe command error messages consistently Prefix the perror output of the dedupe command consistently. All the other perror calls reference the ioctl name directly, so we might as well do that for all the dedupe cases. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/io/reflink.c b/io/reflink.c index a09e82dca..11b8fb4da 100644 --- a/io/reflink.c +++ b/io/reflink.c @@ -78,12 +78,12 @@ dedupe_ioctl( goto done; } if (info->status < 0) { - fprintf(stderr, "dedupe: %s\n", + fprintf(stderr, "XFS_IOC_FILE_EXTENT_SAME: %s\n", _(strerror(-info->status))); goto done; } if (info->status == XFS_EXTENT_DATA_DIFFERS) { - fprintf(stderr, "dedupe: %s\n", + fprintf(stderr, "XFS_IOC_FILE_EXTENT_SAME: %s\n", _("Extents did not match.")); goto done; }