summaryrefslogtreecommitdiff
path: root/btrfs-show.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-show.c')
-rw-r--r--btrfs-show.c3
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;
}