diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-01 21:08:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-01 21:08:52 +0200 |
commit | 965beb37dede0ac0f6e1be961acfbc15ee7e46cf (patch) | |
tree | 428ff5cb61b17b8de339316e65ed4a70aea10dca /src/core/core-hook.c | |
parent | a7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff) | |
download | weechat-965beb37dede0ac0f6e1be961acfbc15ee7e46cf.zip |
core: fix print of pointer values
Diffstat (limited to 'src/core/core-hook.c')
-rw-r--r-- | src/core/core-hook.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/core-hook.c b/src/core/core-hook.c index d89c2f988..1b6d1560d 100644 --- a/src/core/core-hook.c +++ b/src/core/core-hook.c @@ -929,24 +929,24 @@ hook_print_log () ptr_hook = ptr_hook->next_hook) { log_printf (""); - log_printf ("[hook (addr:0x%lx)]", ptr_hook); - log_printf (" plugin. . . . . . . . . : 0x%lx ('%s')", + log_printf ("[hook (addr:%p)]", ptr_hook); + log_printf (" plugin. . . . . . . . . : %p ('%s')", ptr_hook->plugin, plugin_get_name (ptr_hook->plugin)); log_printf (" subplugin . . . . . . . : '%s'", ptr_hook->subplugin); log_printf (" type. . . . . . . . . . : %d (%s)", ptr_hook->type, hook_type_string[ptr_hook->type]); - log_printf (" deleted . . . . . . . . : %d", ptr_hook->deleted); - log_printf (" running . . . . . . . . : %d", ptr_hook->running); - log_printf (" priority. . . . . . . . : %d", ptr_hook->priority); - log_printf (" callback_pointer. . . . : 0x%lx", ptr_hook->callback_pointer); - log_printf (" callback_data . . . . . : 0x%lx", ptr_hook->callback_data); + log_printf (" deleted . . . . . . . . : %d", ptr_hook->deleted); + log_printf (" running . . . . . . . . : %d", ptr_hook->running); + log_printf (" priority. . . . . . . . : %d", ptr_hook->priority); + log_printf (" callback_pointer. . . . : %p", ptr_hook->callback_pointer); + log_printf (" callback_data . . . . . : %p", ptr_hook->callback_data); if (ptr_hook->deleted) continue; (hook_callback_print_log[ptr_hook->type]) (ptr_hook); - log_printf (" prev_hook . . . . . . . : 0x%lx", ptr_hook->prev_hook); - log_printf (" next_hook . . . . . . . : 0x%lx", ptr_hook->next_hook); + log_printf (" prev_hook . . . . . . . : %p", ptr_hook->prev_hook); + log_printf (" next_hook . . . . . . . : %p", ptr_hook->next_hook); } } } |