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-filesystem.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-filesystem.c')
-rw-r--r-- | cmds-filesystem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 9aa57146..f3fc160c 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -33,7 +33,6 @@ #include "ioctl.h" #include "utils.h" #include "volumes.h" -#include "version.h" #include "commands.h" #include "cmds-fi-disk_usage.h" #include "list_sort.h" @@ -957,7 +956,7 @@ devs_only: free_fs_devices(fs_devices); } out: - printf("%s\n", BTRFS_BUILD_VERSION); + printf("%s\n", PACKAGE_STRING); free_seen_fsid(); return ret; } @@ -1213,7 +1212,7 @@ static int cmd_defrag(int argc, char **argv) } } if (defrag_global_verbose) - printf("%s\n", BTRFS_BUILD_VERSION); + printf("%s\n", PACKAGE_STRING); if (defrag_global_errors) fprintf(stderr, "total %d failures\n", defrag_global_errors); |