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 --- cmds-filesystem.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmds-filesystem.c') 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); -- cgit v1.2.3