1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

hook: do not initialise log before invocation is checked

This commit is contained in:
Steffen Vogel 2017-05-03 19:07:56 +02:00
parent db5b8fc8cc
commit 5bc7d353a7

View file

@ -127,11 +127,6 @@ int main(int argc, char *argv[])
exit(c == '?' ? EXIT_FAILURE : EXIT_SUCCESS);
}
}
log_init(&log, level, LOG_ALL);
log_start(&log);
memory_init(DEFAULT_NR_HUGEPAGES);
if (argc < optind + 1) {
usage();
@ -141,6 +136,11 @@ int main(int argc, char *argv[])
if (cnt < 1)
error("Vectorize option must be greater than 0");
log_init(&log, level, LOG_ALL);
log_start(&log);
memory_init(DEFAULT_NR_HUGEPAGES);
ret = pool_init(&q, 10 * cnt, SAMPLE_LEN(DEFAULT_SAMPLELEN), &memtype_hugepage);
if (ret)
error("Failed to initilize memory pool");