From: Eric Leblond Date: Fri, 10 May 2013 07:43:59 +0000 (+0200) Subject: suricata: use function to print version X-Git-Tag: suricata-2.0beta2~444 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a6983ee19e78da16551ec55768b8671cb357fd8;p=thirdparty%2Fsuricata.git suricata: use function to print version --- diff --git a/src/suricata.c b/src/suricata.c index 8eda861779..731ba2eefb 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -1618,13 +1618,7 @@ int main(int argc, char **argv) if (suri.run_mode == RUNMODE_UNITTEST) return RunUnittests(0, suri.regex_arg); -#ifdef REVISION - SCLogInfo("This is %s version %s (rev %s)", PROG_NAME, PROG_VER, xstr(REVISION)); -#elif defined RELEASE - SCLogInfo("This is %s version %s RELEASE", PROG_NAME, PROG_VER); -#else - SCLogInfo("This is %s version %s", PROG_NAME, PROG_VER); -#endif + SuriPrintVersion(); SetBpfString(optind, argv);