diff options
author | Simon Rettberg | 2020-12-02 12:54:27 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-02 12:54:27 +0100 |
commit | 656e776498fe862b1b388435568c5bb72213cb16 (patch) | |
tree | 855d21b40e4ccb9c07664e4922632da2a883d99d /src/fuse/main.c | |
parent | [CLIENT] print help and version number correctly (diff) | |
download | dnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.gz dnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.xz dnbd3-656e776498fe862b1b388435568c5bb72213cb16.zip |
[BUILD] Include branch and build timestamp in binaries
Diffstat (limited to 'src/fuse/main.c')
-rw-r--r-- | src/fuse/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fuse/main.c b/src/fuse/main.c index 8963e6d..e06f6e8 100644 --- a/src/fuse/main.c +++ b/src/fuse/main.c @@ -11,6 +11,7 @@ #include "connection.h" #include "helper.h" #include <dnbd3/version.h> +#include <dnbd3/build.h> #include <dnbd3/shared/protocol.h> #include <dnbd3/shared/log.h> @@ -273,7 +274,8 @@ static struct fuse_lowlevel_ops image_oper = { static void printVersion() { char *arg[] = { "foo", "-V" }; - printf( "dnbd3-fuse version: %s\n", DNBD3_VERSION ); + printf( "dnbd3-fuse version: %s\n", DNBD3_VERSION_LONG ); + printf( "Built: %s\n", DNBD3_BUILD_DATE ); printf( "Protocol version: %d\n", (int)PROTOCOL_VERSION ); struct fuse_args args = FUSE_ARGS_INIT( 2, arg ); fuse_parse_cmdline( &args, NULL, NULL, NULL ); |