diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2009-03-04 00:32:20 +0100 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2009-03-04 00:32:20 +0100 |
commit | c88c4da5d27da4b65dac6a732d58f2d38c1ec91c (patch) | |
tree | 374880a359d713ebf6810d9aa246030bd6f8daca /src/ceph_ver.c | |
parent | Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable (diff) | |
download | ceph-c88c4da5d27da4b65dac6a732d58f2d38c1ec91c.tar.xz ceph-c88c4da5d27da4b65dac6a732d58f2d38c1ec91c.zip |
ceph_ver: show the git sha1 version in the logs
Diffstat (limited to 'src/ceph_ver.c')
-rw-r--r-- | src/ceph_ver.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ceph_ver.c b/src/ceph_ver.c new file mode 100644 index 00000000000..e1be389da2e --- /dev/null +++ b/src/ceph_ver.c @@ -0,0 +1,12 @@ + +#include "acconfig.h" +#include "ceph_ver.h" + +#define CONCAT_VER_SYMBOL(x) ceph_ver__##x + +#define DEFINE_VER_SYMBOL(x) int CONCAT_VER_SYMBOL(x) + +DEFINE_VER_SYMBOL(CEPH_GIT_VER); + +#define CEPH_VER VERSION "-" #CEPH_GIT_VER + |