summaryrefslogtreecommitdiffstats
path: root/src/fuse
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-02 12:54:27 +0100
committerSimon Rettberg2020-12-02 12:54:27 +0100
commit656e776498fe862b1b388435568c5bb72213cb16 (patch)
tree855d21b40e4ccb9c07664e4922632da2a883d99d /src/fuse
parent[CLIENT] print help and version number correctly (diff)
downloaddnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.gz
dnbd3-656e776498fe862b1b388435568c5bb72213cb16.tar.xz
dnbd3-656e776498fe862b1b388435568c5bb72213cb16.zip
[BUILD] Include branch and build timestamp in binaries
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/main.c4
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 );