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 /cmds-check.c | |
parent | bb6b4fea9f78939262446e35d2e0d4d0ed0d8e57 (diff) |
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 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c index 68863707..ddf712ee 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -31,7 +31,6 @@ #include "disk-io.h" #include "print-tree.h" #include "transaction.h" -#include "version.h" #include "utils.h" #include "commands.h" #include "free-space-cache.h" @@ -8749,7 +8748,7 @@ out: printf("file data blocks allocated: %llu\n referenced %llu\n", (unsigned long long)data_bytes_allocated, (unsigned long long)data_bytes_referenced); - printf("%s\n", BTRFS_BUILD_VERSION); + printf("%s\n", PACKAGE_STRING); free_root_recs_tree(&root_cache); close_out: |