From 1a6983ee19e78da16551ec55768b8671cb357fd8 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 10 May 2013 09:43:59 +0200 Subject: [PATCH] suricata: use function to print version --- src/suricata.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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); -- 2.47.3