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 /btrfsck.c | |
parent | cbfe93f68fb47513386bca429e35e6265091bd86 (diff) |
Print the version string in a few programs
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -27,6 +27,7 @@ #include "print-tree.h" #include "transaction.h" #include "list.h" +#include "version.h" static u64 bytes_used = 0; static u64 total_csum_bytes = 0; @@ -719,6 +720,7 @@ int check_extent_refs(struct btrfs_root *root, void print_usage(void) { fprintf(stderr, "usage: btrfsck dev\n"); + fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); } @@ -821,5 +823,6 @@ int main(int ac, char **av) { printf("file data blocks allocated: %llu\n referenced %llu\n", (unsigned long long)data_bytes_allocated, (unsigned long long)data_bytes_referenced); + printf("%s\n", BTRFS_BUILD_VERSION); return ret; } |