From e21a9638a2065d0f14ac0465c7dc37bdafc797fd Mon Sep 17 00:00:00 2001 From: icex2 Date: Sat, 23 Jan 2021 23:45:57 +0100 Subject: [PATCH] wip --- src/main/hook/pri/main.c | 2 +- src/main/hook/pri/options.c | 2 ++ src/main/util/options.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/hook/pri/main.c b/src/main/hook/pri/main.c index c4f7afe..1196dcf 100644 --- a/src/main/hook/pri/main.c +++ b/src/main/hook/pri/main.c @@ -56,7 +56,7 @@ static void prihook_bootstrapping(int argc, char** argv, struct prihook_options* return; } - hook_core_piu_log_init(argc, argv); +// hook_core_piu_log_init(argc, argv); if (!prihook_options_init(argc, argv, options)) { exit(0); diff --git a/src/main/hook/pri/options.c b/src/main/hook/pri/options.c index e78db1d..313f223 100644 --- a/src/main/hook/pri/options.c +++ b/src/main/hook/pri/options.c @@ -150,6 +150,8 @@ bool prihook_options_init(int argc, char** argv, struct prihook_options* options struct util_options_opts* options_opt; + log_warn("!!!! %d", prihook_options_defs.ndefs); + util_options_init(argc, argv); options_opt = util_options_get(&prihook_options_defs); diff --git a/src/main/util/options.c b/src/main/util/options.c index b086b22..75e7d11 100644 --- a/src/main/util/options.c +++ b/src/main/util/options.c @@ -318,6 +318,8 @@ static struct util_options_opts* util_options_get2( options->defs = option_defs; options->entries = option_defs->ndefs; + log_warn(">>>> %d", option_defs->ndefs); + options->values = (struct util_options_value*) util_xmalloc( sizeof(struct util_options_value) * options->entries);