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 /doc/en | |
parent | a7c92e2d2471c1442c65e5ea95a7dce8061f5784 (diff) | |
download | weechat-965beb37dede0ac0f6e1be961acfbc15ee7e46cf.zip |
core: fix print of pointer values
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index a8c7cfab2..80912d774 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -5262,7 +5262,7 @@ C example: [source,c] ---- -weechat_printf (NULL, "user data of item: 0x%lx", weechat_list_user_data (item)); +weechat_printf (NULL, "user data of item: %p", weechat_list_user_data (item)); ---- [NOTE] @@ -17898,7 +17898,7 @@ C example: [source,c] ---- -weechat_printf (NULL, "pointer = 0x%lx", +weechat_printf (NULL, "pointer = %p", weechat_infolist_pointer (infolist, "my_pointer")); ---- @@ -17941,8 +17941,7 @@ C example: ---- int size; void *pointer = weechat_infolist_buffer (infolist, "my_buffer", &size); -weechat_printf (NULL, "buffer = 0x%lx, size = %d", - pointer, size); +weechat_printf (NULL, "buffer = %p, size = %d", pointer, size); ---- [NOTE] |