summaryrefslogtreecommitdiff
path: root/btrfs-zero-log.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-12-09 15:37:03 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-28 18:00:58 +0100
commit33f2d6b84da88139b2b7ff53e470cb198d425381 (patch)
treec05a3cb96b2c48a95818882224d07c63501deeb3 /btrfs-zero-log.c
parentbb6b4fea9f78939262446e35d2e0d4d0ed0d8e57 (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 'btrfs-zero-log.c')
-rw-r--r--btrfs-zero-log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/btrfs-zero-log.c b/btrfs-zero-log.c
index 31e7481f..cd0cee01 100644
--- a/btrfs-zero-log.c
+++ b/btrfs-zero-log.c
@@ -27,14 +27,13 @@
#include "print-tree.h"
#include "transaction.h"
#include "list.h"
-#include "version.h"
#include "utils.h"
static void print_usage(void) __attribute__((noreturn));
static void print_usage(void)
{
fprintf(stderr, "usage: btrfs-zero-log dev\n");
- fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
+ fprintf(stderr, "%s\n", PACKAGE_STRING);
exit(1);
}