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:
parent
db5b8fc8cc
commit
5bc7d353a7
1 changed files with 5 additions and 5 deletions
10
src/hook.c
10
src/hook.c
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue