summaryrefslogtreecommitdiff
path: root/src/gui/gui-cursor.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-01 21:08:52 +0200
commit965beb37dede0ac0f6e1be961acfbc15ee7e46cf (patch)
tree428ff5cb61b17b8de339316e65ed4a70aea10dca /src/gui/gui-cursor.c
parenta7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff)
downloadweechat-965beb37dede0ac0f6e1be961acfbc15ee7e46cf.zip
core: fix print of pointer values
Diffstat (limited to 'src/gui/gui-cursor.c')
-rw-r--r--src/gui/gui-cursor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/gui-cursor.c b/src/gui/gui-cursor.c
index 91c40dacf..bc8f387d0 100644
--- a/src/gui/gui-cursor.c
+++ b/src/gui/gui-cursor.c
@@ -127,15 +127,15 @@ gui_cursor_display_debug_info ()
if (focus_info)
{
snprintf (str_info, sizeof (str_info),
- "%s(%d,%d) window:0x%lx, buffer:0x%lx (%s), "
- "bar_window:0x%lx (bar: %s, item: %s, line: %d, col: %d), "
+ "%s(%d,%d) window:%p, buffer:%p (%s), "
+ "bar_window:%p (bar: %s, item: %s, line: %d, col: %d), "
"chat: %d, word: \"%s\"",
gui_color_get_custom ("yellow,red"),
focus_info->x, focus_info->y,
- (unsigned long)focus_info->window,
- (unsigned long)focus_info->buffer,
+ focus_info->window,
+ focus_info->buffer,
(focus_info->buffer) ? (focus_info->buffer)->full_name : "-",
- (unsigned long)focus_info->bar_window,
+ focus_info->bar_window,
(focus_info->bar_window) ? ((focus_info->bar_window)->bar)->name : "-",
(focus_info->bar_item) ? focus_info->bar_item : "-",
focus_info->bar_item_line,