diff options
author | Daniel Agar <daniel@agar.ca> | 2015-04-18 00:57:26 -0400 |
---|---|---|
committer | Daniel Agar <daniel@agar.ca> | 2015-04-18 01:25:54 -0400 |
commit | 207b57869d7ed44950a51bbd9632a8549d7a9c49 (patch) | |
tree | 058febbd95ea40c7eb0ba2b926d9378cd7022d0d /src/systemcmds/ver/ver.c | |
parent | b53a33bc513a33c784b37a700058bfbc1e15c985 (diff) | |
download | px4-firmware-207b57869d7ed44950a51bbd9632a8549d7a9c49.tar.gz px4-firmware-207b57869d7ed44950a51bbd9632a8549d7a9c49.tar.bz2 px4-firmware-207b57869d7ed44950a51bbd9632a8549d7a9c49.zip |
only define GIT_VERSION where it's used
-when the git revision is passed to every file as a define it causes
unnecessary ccache cache misses
Diffstat (limited to 'src/systemcmds/ver/ver.c')
-rw-r--r-- | src/systemcmds/ver/ver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/ver/ver.c b/src/systemcmds/ver/ver.c index 087eb52e3..b794e8b2f 100644 --- a/src/systemcmds/ver/ver.c +++ b/src/systemcmds/ver/ver.c @@ -101,7 +101,7 @@ int ver_main(int argc, char *argv[]) } if (show_all || !strncmp(argv[1], sz_ver_git_str, sizeof(sz_ver_git_str))) { - printf("FW git-hash: %s\n", FW_GIT); + printf("FW git-hash: %s\n", GIT_VERSION); ret = 0; } |