suricata: info message after log init

This patch moves version display after log init so we can have an
homogeneous display.
pull/576/head
Eric Leblond 12 years ago
parent fdc1757e34
commit 4a4600539d

@ -918,6 +918,18 @@ static TmEcode PrintVersion()
return TM_ECODE_OK;
}
static TmEcode SCPrintVersion()
{
#ifdef REVISION
SCLogNotice("This is %s version %s (rev %s)", PROG_NAME, PROG_VER, xstr(REVISION));
#elif defined RELEASE
SCLogNotice("This is %s version %s RELEASE", PROG_NAME, PROG_VER);
#else
SCLogNotice("This is %s version %s", PROG_NAME, PROG_VER);
#endif
return TM_ECODE_OK;
}
static void SCSetStartTime(SCInstance *suri)
{
memset(&suri->start_time, 0, sizeof(suri->start_time));
@ -1856,10 +1868,6 @@ int main(int argc, char **argv)
if (suri.run_mode == RUNMODE_UNITTEST)
return RunUnittests(0, suri.regex_arg);
PrintVersion();
UtilCpuPrintSummary();
#ifdef __SC_CUDA_SUPPORT__
/* Init the CUDA environment */
SCCudaInitCudaEnvironment();
@ -1888,6 +1896,10 @@ int main(int argc, char **argv)
* logging module. */
SCLogLoadConfig(suri.daemon);
SCPrintVersion();
UtilCpuPrintSummary();
/* load the pattern matchers */
MpmTableSetup();
#ifdef __SC_CUDA_SUPPORT__

Loading…
Cancel
Save