]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata: use function to print version
authorEric Leblond <eric@regit.org>
Fri, 10 May 2013 07:43:59 +0000 (09:43 +0200)
committerEric Leblond <eric@regit.org>
Tue, 30 Jul 2013 13:22:33 +0000 (15:22 +0200)
src/suricata.c

index 8eda861779ee7a3662bdb5d5849fd481144bf631..731ba2eefb8b9b8b491afb68c8fa4ba0a3d966b3 100644 (file)
@@ -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);