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));
if (suri.run_mode == RUNMODE_UNITTEST)
return RunUnittests(0, suri.regex_arg);
- PrintVersion();
-
- UtilCpuPrintSummary();
-
#ifdef __SC_CUDA_SUPPORT__
/* Init the CUDA environment */
SCCudaInitCudaEnvironment();
* logging module. */
SCLogLoadConfig(suri.daemon);
+ SCPrintVersion();
+
+ UtilCpuPrintSummary();
+
/* load the pattern matchers */
MpmTableSetup();
#ifdef __SC_CUDA_SUPPORT__