From a225233d8cc8f7fa3bde586438f5415d23ae1ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 6 Mar 2016 11:48:16 +0100 Subject: core: remove plugin pointer in hooks debug messages --- src/core/wee-hook.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/core/wee-hook.c') diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index c7100260e..4e0959b16 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -378,10 +378,11 @@ hook_init_data (struct t_hook *hook, struct t_weechat_plugin *plugin, if (weechat_debug_core >= 2) { gui_chat_printf (NULL, - "debug: adding hook: type=%d (%s), plugin=%lx (%s), " + "debug: adding hook: type=%d (%s), plugin=\"%s\", " "priority=%d", - hook->type, hook_type_string[hook->type], - hook->plugin, plugin_get_name (hook->plugin), + hook->type, + hook_type_string[hook->type], + plugin_get_name (hook->plugin), hook->priority); } } @@ -3538,9 +3539,10 @@ unhook (struct t_hook *hook) if (weechat_debug_core >= 2) { gui_chat_printf (NULL, - "debug: removing hook: type=%d (%s), plugin=%lx (%s)", - hook->type, hook_type_string[hook->type], - hook->plugin, plugin_get_name (hook->plugin)); + "debug: removing hook: type=%d (%s), plugin=\"%s\"", + hook->type, + hook_type_string[hook->type], + plugin_get_name (hook->plugin)); } /* free data */ -- cgit v1.2.3