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-debug-tree.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'btrfs-debug-tree.c') diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c index 0815fe1..10d0297 100644 --- a/btrfs-debug-tree.c +++ b/btrfs-debug-tree.c @@ -26,7 +26,6 @@ #include "disk-io.h" #include "print-tree.h" #include "transaction.h" -#include "version.h" #include "utils.h" static int print_usage(void) @@ -43,7 +42,7 @@ static int print_usage(void) " only\n"); fprintf(stderr, "\t-t tree_id : print only the tree with the given id\n"); - fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); + fprintf(stderr, "%s\n", PACKAGE_STRING); exit(1); } @@ -413,7 +412,7 @@ no_node: uuidbuf[BTRFS_UUID_UNPARSED_SIZE - 1] = '\0'; uuid_unparse(info->super_copy->fsid, uuidbuf); printf("uuid %s\n", uuidbuf); - printf("%s\n", BTRFS_BUILD_VERSION); + printf("%s\n", PACKAGE_STRING); close_root: return close_ctree(root); } -- cgit v1.2.1