From 9298c66dc028efaa0ffa7f9307b898d38fe2f56a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 24 May 2016 01:33:08 +0000 Subject: [PATCH] tests/btrfs.c: do not print errno in case of fs type mismatch * tests/btrfs.c (main): Use error_msg_and_fail instead of perror_msg_and_fail when the fs type of the given directory is not BTRFS_SUPER_MAGIC. --- tests/btrfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/btrfs.c b/tests/btrfs.c index 54c57acf..f88bfb33 100644 --- a/tests/btrfs.c +++ b/tests/btrfs.c @@ -1799,8 +1799,8 @@ main(int argc, char *argv[]) perror_msg_and_fail("statfs(%s) failed", path); if ((unsigned) sfi.f_type != BTRFS_SUPER_MAGIC) - perror_msg_and_fail("%s is not a btrfs file system", - path); + error_msg_and_fail("%s is not a btrfs file system", + path); btrfs_test_root = path; rootfd = open(path, O_RDONLY|O_DIRECTORY); -- 2.50.1