diff options
author | Karel Zak <kzak@redhat.com> | 2014-12-09 15:37:03 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-01-28 18:00:58 +0100 |
commit | 33f2d6b84da88139b2b7ff53e470cb198d425381 (patch) | |
tree | c05a3cb96b2c48a95818882224d07c63501deeb3 /btrfs-debug-tree.c | |
parent | bb6b4fea9f78939262446e35d2e0d4d0ed0d8e57 (diff) | |
download | btrfs-progs-33f2d6b84da88139b2b7ff53e470cb198d425381.tar.gz |
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 <version>" instead of
the original confusing "btrfs <version>".
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-debug-tree.c')
-rw-r--r-- | btrfs-debug-tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |