diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-24 12:13:30 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-07-24 12:13:30 -0400 |
commit | 9864c90760e7c0f287cc616d5f71a674efbbc5ea (patch) | |
tree | d26b1f1c7a9777618070a99f41c824db79465f0c /btrfs-show.c | |
parent | cbfe93f68fb47513386bca429e35e6265091bd86 (diff) |
Print the version string in a few programs
Diffstat (limited to 'btrfs-show.c')
-rw-r--r-- | btrfs-show.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/btrfs-show.c b/btrfs-show.c index 5c370f1e..c49626ce 100644 --- a/btrfs-show.c +++ b/btrfs-show.c @@ -36,6 +36,7 @@ #include "transaction.h" #include "utils.h" #include "volumes.h" +#include "version.h" static int uuid_search(struct btrfs_fs_devices *fs_devices, char *search) { @@ -98,6 +99,7 @@ static void print_one_uuid(struct btrfs_fs_devices *fs_devices) static void print_usage(void) { fprintf(stderr, "usage: btrfs-show [search label or device]\n"); + fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); } @@ -143,6 +145,7 @@ int main(int ac, char **av) continue; print_one_uuid(fs_devices); } + printf("%s\n", BTRFS_BUILD_VERSION); return 0; } |