From: Dmitry V. Levin Date: Tue, 24 May 2016 01:33:08 +0000 (+0000) Subject: tests/btrfs.c: do not print errno in case of fs type mismatch X-Git-Tag: v4.12~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9298c66dc028efaa0ffa7f9307b898d38fe2f56a;p=strace 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. --- 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);