diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c index 8416e0f3f..8a6650f12 100644 --- a/src/plugins/trigger/trigger.c +++ b/src/plugins/trigger/trigger.c @@ -1106,8 +1106,8 @@ trigger_print_log () weechat_log_printf (" hooks[%03d]. . . . . . : 0x%lx", i, ptr_trigger->hooks[i]); } - weechat_log_printf (" hook_count_cb . . . . . : %lu", ptr_trigger->hook_count_cb); - weechat_log_printf (" hook_count_cmd. . . . . : %lu", ptr_trigger->hook_count_cmd); + weechat_log_printf (" hook_count_cb . . . . . : %llu", ptr_trigger->hook_count_cb); + weechat_log_printf (" hook_count_cmd. . . . . : %llu", ptr_trigger->hook_count_cmd); weechat_log_printf (" hook_running. . . . . . : %d", ptr_trigger->hook_running); weechat_log_printf (" hook_print_buffers. . . : '%s'", ptr_trigger->hook_print_buffers); weechat_log_printf (" regex_count . . . . . . : %d", ptr_trigger->regex_count); diff --git a/src/plugins/trigger/trigger.h b/src/plugins/trigger/trigger.h index bf559b620..44c1611ae 100644 --- a/src/plugins/trigger/trigger.h +++ b/src/plugins/trigger/trigger.h @@ -86,8 +86,8 @@ struct t_trigger /* hooks */ int hooks_count; /* number of hooks */ struct t_hook **hooks; /* array of hooks (signal, ...) */ - unsigned long hook_count_cb; /* number of calls made to callback */ - unsigned long hook_count_cmd; /* number of commands run in callback*/ + unsigned long long hook_count_cb; /* number of calls made to callback */ + unsigned long long hook_count_cmd; /* number of commands run in callback*/ int hook_running; /* 1 if one hook callback is running */ char *hook_print_buffers; /* buffers (for hook_print only) */