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);