From 33f2d6b84da88139b2b7ff53e470cb198d425381 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 9 Dec 2014 15:37:03 +0100 Subject: btrfs-progs: autoconf: use standard PACKAGE_* macros - use standard PACKAGE_{NAME,VERSION,STRING,URL,...} autoconf macros rather than homemade BTRFS_BUILD_VERSION - don't #include version.h, now the file is necessary for library API only Note that "btrfs version" returns "btrfs-progs " instead of the original confusing "btrfs ". Signed-off-by: Karel Zak Signed-off-by: David Sterba --- btrfs-show-super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'btrfs-show-super.c') diff --git a/btrfs-show-super.c b/btrfs-show-super.c index 4afa8527..1c7a0867 100644 --- a/btrfs-show-super.c +++ b/btrfs-show-super.c @@ -31,7 +31,6 @@ #include "print-tree.h" #include "transaction.h" #include "list.h" -#include "version.h" #include "utils.h" #include "crc32c.h" @@ -49,7 +48,7 @@ static void print_usage(void) fprintf(stderr, "\t-a : print information of all superblocks\n"); fprintf(stderr, "\t-i : specify which mirror to print out\n"); fprintf(stderr, "\t-F : attempt to dump superblocks with bad magic\n"); - fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); + fprintf(stderr, "%s\n", PACKAGE_STRING); } int main(int argc, char **argv) -- cgit v1.2.3