diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-09 20:35:58 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-09 20:35:58 +0100 |
commit | f87e51d1ef197a9bc82bf34dc8ab73d4d4186569 (patch) | |
tree | d76daf546c65aa114c737aaafd661e99a910b6f7 /src | |
parent | 744bea73fb0e661c5f1dfa2b00cfb6940bfc6e37 (diff) | |
download | dabmod-f87e51d1ef197a9bc82bf34dc8ab73d4d4186569.tar.gz dabmod-f87e51d1ef197a9bc82bf34dc8ab73d4d4186569.tar.bz2 dabmod-f87e51d1ef197a9bc82bf34dc8ab73d4d4186569.zip |
Show version in startup screen
Diffstat (limited to 'src')
-rw-r--r-- | src/DabMod.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 6d85c8e..7a147a0 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -524,10 +524,15 @@ int main(int argc, char* argv[]) outputuhd_conf.muteNoTimestamps = (pt.get("delaymanagement.mutenotimestamps", 0) == 1); } - logger.level(info) << "starting up"; + logger.level(info) << "Version " << +#if defined(GITVERSION) + GITVERSION +#else + VERSION +#endif + << " starting up"; if (!(modconf.use_offset_file || modconf.use_offset_fixed)) { - fprintf(stderr, "No Modulator offset defined, setting to 0\n"); logger.level(debug) << "No Modulator offset defined, setting to 0"; modconf.use_offset_fixed = true; modconf.offset_fixed = 0; |