From 877ecf75fb3703d170b578ba701ce657b0fdb458 Mon Sep 17 00:00:00 2001 From: suyambulingamrm Date: Wed, 4 Jun 2014 19:37:27 +0530 Subject: Issue #73. Modify the output format for --version option. --- src/caskbench.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/caskbench.cpp') diff --git a/src/caskbench.cpp b/src/caskbench.cpp index 43710e4..62a68df 100644 --- a/src/caskbench.cpp +++ b/src/caskbench.cpp @@ -20,6 +20,7 @@ #include "caskbench_result.h" #include "device_config.h" #include "tests.h" +#include "git_info.h" typedef struct _caskbench_options { int dry_run; @@ -85,9 +86,10 @@ _status_to_string(int result) static void print_version() { - printf("%s version %s\n", + printf("%s version %s+%.7s\n", PACKAGE_NAME, - PACKAGE_VERSION); + PACKAGE_VERSION, + git_sha); } static void -- cgit v1.3.1-4-g156e