1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: fix print of pointer values

This commit is contained in:
Sébastien Helleu
2024-04-01 21:08:52 +02:00
parent a7c92e2d24
commit 965beb37de
91 changed files with 1031 additions and 1055 deletions
+1 -2
View File
@@ -806,8 +806,7 @@ irc_bar_item_focus_buffer_nicklist (const void *pointer, void *data,
ptr_nick = irc_nick_search (ptr_server, ptr_channel, nick);
if (ptr_nick)
{
snprintf (str_value, sizeof (str_value),
"0x%lx", (unsigned long)ptr_nick);
snprintf (str_value, sizeof (str_value), "%p", ptr_nick);
weechat_hashtable_set (info, "irc_nick", str_value);
if (ptr_nick->host)
+12 -12
View File
@@ -565,22 +565,22 @@ irc_batch_print_log (struct t_irc_server *server)
ptr_batch = ptr_batch->next_batch)
{
weechat_log_printf ("");
weechat_log_printf (" => batch (addr:0x%lx):", ptr_batch);
weechat_log_printf (" reference . . . . . : '%s'", ptr_batch->reference);
weechat_log_printf (" parent_ref. . . . . : '%s'", ptr_batch->parent_ref);
weechat_log_printf (" type. . . . . . . . : '%s'", ptr_batch->type);
weechat_log_printf (" parameters. . . . . : '%s'", ptr_batch->parameters);
weechat_log_printf (" tags. . . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" => batch (addr:%p):", ptr_batch);
weechat_log_printf (" reference . . . . . : '%s'", ptr_batch->reference);
weechat_log_printf (" parent_ref. . . . . : '%s'", ptr_batch->parent_ref);
weechat_log_printf (" type. . . . . . . . : '%s'", ptr_batch->type);
weechat_log_printf (" parameters. . . . . : '%s'", ptr_batch->parameters);
weechat_log_printf (" tags. . . . . . . . : %p (hashtable: '%s')",
ptr_batch->tags,
weechat_hashtable_get_string (ptr_batch->tags,
"keys_values"));
weechat_log_printf (" start_time. . . . . : %lld", (long long)ptr_batch->start_time);
weechat_log_printf (" message . . . . . . : 0x%lx ('%s')",
weechat_log_printf (" start_time. . . . . : %lld", (long long)ptr_batch->start_time);
weechat_log_printf (" message . . . . . . : %p ('%s')",
ptr_batch->messages,
(ptr_batch->messages) ? *(ptr_batch->messages) : NULL);
weechat_log_printf (" end_received. . . . : %d", ptr_batch->end_received);
weechat_log_printf (" messages_processed. : %d", ptr_batch->messages_processed);
weechat_log_printf (" prev_batch. . . . . : 0x%lx", ptr_batch->prev_batch);
weechat_log_printf (" next_batch. . . . . : 0x%lx", ptr_batch->next_batch);
weechat_log_printf (" end_received. . . . : %d", ptr_batch->end_received);
weechat_log_printf (" messages_processed. : %d", ptr_batch->messages_processed);
weechat_log_printf (" prev_batch. . . . . : %p", ptr_batch->prev_batch);
weechat_log_printf (" next_batch. . . . . : %p", ptr_batch->next_batch);
}
}
+31 -31
View File
@@ -1790,43 +1790,43 @@ irc_channel_print_log (struct t_irc_channel *channel)
struct t_irc_modelist *ptr_modelist;
weechat_log_printf ("");
weechat_log_printf (" => channel %s (addr:0x%lx):", channel->name, channel);
weechat_log_printf (" type . . . . . . . . . . : %d", channel->type);
weechat_log_printf (" topic. . . . . . . . . . : '%s'", channel->topic);
weechat_log_printf (" modes. . . . . . . . . . : '%s'", channel->modes);
weechat_log_printf (" limit. . . . . . . . . . : %d", channel->limit);
weechat_log_printf (" key. . . . . . . . . . . : '%s'", channel->key);
weechat_log_printf (" join_msg_received. . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" => channel %s (addr:%p):", channel->name, channel);
weechat_log_printf (" type . . . . . . . . . . : %d", channel->type);
weechat_log_printf (" topic. . . . . . . . . . : '%s'", channel->topic);
weechat_log_printf (" modes. . . . . . . . . . : '%s'", channel->modes);
weechat_log_printf (" limit. . . . . . . . . . : %d", channel->limit);
weechat_log_printf (" key. . . . . . . . . . . : '%s'", channel->key);
weechat_log_printf (" join_msg_received. . . . : %p (hashtable: '%s')",
channel->join_msg_received,
weechat_hashtable_get_string (channel->join_msg_received,
"keys_values"));
weechat_log_printf (" checking_whox. . . . . . : %d", channel->checking_whox);
weechat_log_printf (" away_message . . . . . . : '%s'", channel->away_message);
weechat_log_printf (" has_quit_server. . . . . : %d", channel->has_quit_server);
weechat_log_printf (" cycle. . . . . . . . . . : %d", channel->cycle);
weechat_log_printf (" part . . . . . . . . . . : %d", channel->part);
weechat_log_printf (" nick_completion_reset. . : %d", channel->nick_completion_reset);
weechat_log_printf (" pv_remote_nick_color . . : '%s'", channel->pv_remote_nick_color);
weechat_log_printf (" hook_autorejoin. . . . . : 0x%lx", channel->hook_autorejoin);
weechat_log_printf (" nicks_count. . . . . . . : %d", channel->nicks_count);
weechat_log_printf (" nicks. . . . . . . . . . : 0x%lx", channel->nicks);
weechat_log_printf (" last_nick. . . . . . . . : 0x%lx", channel->last_nick);
weechat_log_printf (" nicks_speaking[0]. . . . : 0x%lx", channel->nicks_speaking[0]);
weechat_log_printf (" nicks_speaking[1]. . . . : 0x%lx", channel->nicks_speaking[1]);
weechat_log_printf (" nicks_speaking_time. . . : 0x%lx", channel->nicks_speaking_time);
weechat_log_printf (" last_nick_speaking_time. : 0x%lx", channel->last_nick_speaking_time);
weechat_log_printf (" modelists. . . . . . . . : 0x%lx", channel->modelists);
weechat_log_printf (" last_modelist. . . . . . : 0x%lx", channel->last_modelist);
weechat_log_printf (" join_smart_filtered. . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" checking_whox. . . . . . : %d", channel->checking_whox);
weechat_log_printf (" away_message . . . . . . : '%s'", channel->away_message);
weechat_log_printf (" has_quit_server. . . . . : %d", channel->has_quit_server);
weechat_log_printf (" cycle. . . . . . . . . . : %d", channel->cycle);
weechat_log_printf (" part . . . . . . . . . . : %d", channel->part);
weechat_log_printf (" nick_completion_reset. . : %d", channel->nick_completion_reset);
weechat_log_printf (" pv_remote_nick_color . . : '%s'", channel->pv_remote_nick_color);
weechat_log_printf (" hook_autorejoin. . . . . : %p", channel->hook_autorejoin);
weechat_log_printf (" nicks_count. . . . . . . : %d", channel->nicks_count);
weechat_log_printf (" nicks. . . . . . . . . . : %p", channel->nicks);
weechat_log_printf (" last_nick. . . . . . . . : %p", channel->last_nick);
weechat_log_printf (" nicks_speaking[0]. . . . : %p", channel->nicks_speaking[0]);
weechat_log_printf (" nicks_speaking[1]. . . . : %p", channel->nicks_speaking[1]);
weechat_log_printf (" nicks_speaking_time. . . : %p", channel->nicks_speaking_time);
weechat_log_printf (" last_nick_speaking_time. : %p", channel->last_nick_speaking_time);
weechat_log_printf (" modelists. . . . . . . . : %p", channel->modelists);
weechat_log_printf (" last_modelist. . . . . . : %p", channel->last_modelist);
weechat_log_printf (" join_smart_filtered. . . : %p (hashtable: '%s')",
channel->join_smart_filtered,
weechat_hashtable_get_string (channel->join_smart_filtered,
"keys_values"));
weechat_log_printf (" typing_state . . . . . . : %d", channel->typing_state);
weechat_log_printf (" typing_status_sent . . . : %lld", (long long)channel->typing_status_sent);
weechat_log_printf (" buffer . . . . . . . . . : 0x%lx", channel->buffer);
weechat_log_printf (" buffer_as_string . . . . : '%s'", channel->buffer_as_string);
weechat_log_printf (" prev_channel . . . . . . : 0x%lx", channel->prev_channel);
weechat_log_printf (" next_channel . . . . . . : 0x%lx", channel->next_channel);
weechat_log_printf (" typing_state . . . . . . : %d", channel->typing_state);
weechat_log_printf (" typing_status_sent . . . : %lld", (long long)channel->typing_status_sent);
weechat_log_printf (" buffer . . . . . . . . . : %p", channel->buffer);
weechat_log_printf (" buffer_as_string . . . . : '%s'", channel->buffer_as_string);
weechat_log_printf (" prev_channel . . . . . . : %p", channel->prev_channel);
weechat_log_printf (" next_channel . . . . . . : %p", channel->next_channel);
for (i = 0; i < 2; i++)
{
if (channel->nicks_speaking[i])
+8 -8
View File
@@ -425,13 +425,13 @@ irc_ignore_print_log ()
ptr_ignore = ptr_ignore->next_ignore)
{
weechat_log_printf ("");
weechat_log_printf ("[ignore (addr:0x%lx)]", ptr_ignore);
weechat_log_printf (" number . . . . . . . : %d", ptr_ignore->number);
weechat_log_printf (" mask . . . . . . . . : '%s'", ptr_ignore->mask);
weechat_log_printf (" regex_mask . . . . . : 0x%lx", ptr_ignore->regex_mask);
weechat_log_printf (" server . . . . . . . : '%s'", ptr_ignore->server);
weechat_log_printf (" channel. . . . . . . : '%s'", ptr_ignore->channel);
weechat_log_printf (" prev_ignore. . . . . : 0x%lx", ptr_ignore->prev_ignore);
weechat_log_printf (" next_ignore. . . . . : 0x%lx", ptr_ignore->next_ignore);
weechat_log_printf ("[ignore (addr:%p)]", ptr_ignore);
weechat_log_printf (" number . . . . . . . : %d", ptr_ignore->number);
weechat_log_printf (" mask . . . . . . . . : '%s'", ptr_ignore->mask);
weechat_log_printf (" regex_mask . . . . . : %p", ptr_ignore->regex_mask);
weechat_log_printf (" server . . . . . . . : '%s'", ptr_ignore->server);
weechat_log_printf (" channel. . . . . . . : '%s'", ptr_ignore->channel);
weechat_log_printf (" prev_ignore. . . . . : %p", ptr_ignore->prev_ignore);
weechat_log_printf (" next_ignore. . . . . : %p", ptr_ignore->next_ignore);
}
}
+1 -1
View File
@@ -57,7 +57,7 @@ irc_info_create_string_with_pointer (char **string, void *pointer)
*string = malloc (64);
if (*string)
{
snprintf (*string, 64, "0x%lx", (unsigned long)pointer);
snprintf (*string, 64, "%p", pointer);
}
}
}
+7 -7
View File
@@ -478,13 +478,13 @@ void
irc_modelist_item_print_log (struct t_irc_modelist_item *item)
{
weechat_log_printf ("");
weechat_log_printf (" => modelist item %d (addr:0x%lx):", item->number, item);
weechat_log_printf (" => modelist item %d (addr:%p):", item->number, item);
weechat_log_printf (" mask . . . . . . . . . . : '%s'", item->mask);
weechat_log_printf (" setter . . . . . . . . . : '%s'", item->setter);
weechat_log_printf (" datetime . . . . . . . . : %lld",
(long long)(item->datetime));
weechat_log_printf (" prev_item . . . . . . . : 0x%lx", item->prev_item);
weechat_log_printf (" next_item . . . . . . . : 0x%lx", item->next_item);
weechat_log_printf (" prev_item . . . . . . . : %p", item->prev_item);
weechat_log_printf (" next_item . . . . . . . : %p", item->next_item);
}
/*
@@ -497,10 +497,10 @@ irc_modelist_print_log (struct t_irc_modelist *modelist)
struct t_irc_modelist_item *ptr_item;
weechat_log_printf ("");
weechat_log_printf (" => modelist \"%c\" (addr:0x%lx):", modelist->type, modelist);
weechat_log_printf (" state. . . . . . . . . . : %d", modelist->state);
weechat_log_printf (" prev_modelist . . . . . : 0x%lx", modelist->prev_modelist);
weechat_log_printf (" next_modelist . . . . . : 0x%lx", modelist->next_modelist);
weechat_log_printf (" => modelist \"%c\" (addr:%p):", modelist->type, modelist);
weechat_log_printf (" state. . . . . . . . . . : %d", modelist->state);
weechat_log_printf (" prev_modelist . . . . . : %p", modelist->prev_modelist);
weechat_log_printf (" next_modelist . . . . . : %p", modelist->next_modelist);
for (ptr_item = modelist->items; ptr_item; ptr_item = ptr_item->next_item)
{
irc_modelist_item_print_log (ptr_item);
+10 -10
View File
@@ -1200,14 +1200,14 @@ void
irc_nick_print_log (struct t_irc_nick *nick)
{
weechat_log_printf ("");
weechat_log_printf (" => nick %s (addr:0x%lx):", nick->name, nick);
weechat_log_printf (" host . . . . . : '%s'", nick->host);
weechat_log_printf (" prefixes . . . : '%s'", nick->prefixes);
weechat_log_printf (" prefix . . . . : '%s'", nick->prefix);
weechat_log_printf (" away . . . . . : %d", nick->away);
weechat_log_printf (" account. . . . : '%s'", nick->account);
weechat_log_printf (" realname . . . : '%s'", nick->realname);
weechat_log_printf (" color. . . . . : '%s'", nick->color);
weechat_log_printf (" prev_nick. . . : 0x%lx", nick->prev_nick);
weechat_log_printf (" next_nick. . . : 0x%lx", nick->next_nick);
weechat_log_printf (" => nick %s (addr:%p):", nick->name, nick);
weechat_log_printf (" host . . . . . : '%s'", nick->host);
weechat_log_printf (" prefixes . . . : '%s'", nick->prefixes);
weechat_log_printf (" prefix . . . . : '%s'", nick->prefix);
weechat_log_printf (" away . . . . . : %d", nick->away);
weechat_log_printf (" account. . . . : '%s'", nick->account);
weechat_log_printf (" realname . . . : '%s'", nick->realname);
weechat_log_printf (" color. . . . . : '%s'", nick->color);
weechat_log_printf (" prev_nick. . . : %p", nick->prev_nick);
weechat_log_printf (" next_nick. . . : %p", nick->next_nick);
}
+9 -9
View File
@@ -1242,15 +1242,15 @@ irc_notify_print_log (struct t_irc_server *server)
ptr_notify = ptr_notify->next_notify)
{
weechat_log_printf ("");
weechat_log_printf (" => notify (addr:0x%lx):", ptr_notify);
weechat_log_printf (" server. . . . . . . : 0x%lx", ptr_notify->server);
weechat_log_printf (" nick. . . . . . . . : '%s'", ptr_notify->nick);
weechat_log_printf (" check_away. . . . . : %d", ptr_notify->check_away);
weechat_log_printf (" is_on_server. . . . : %d", ptr_notify->is_on_server);
weechat_log_printf (" away_message. . . . : '%s'", ptr_notify->away_message);
weechat_log_printf (" ison_received . . . : %d", ptr_notify->ison_received);
weechat_log_printf (" prev_notify . . . . : 0x%lx", ptr_notify->prev_notify);
weechat_log_printf (" next_notify . . . . : 0x%lx", ptr_notify->next_notify);
weechat_log_printf (" => notify (addr:%p):", ptr_notify);
weechat_log_printf (" server. . . . . . . : %p", ptr_notify->server);
weechat_log_printf (" nick. . . . . . . . : '%s'", ptr_notify->nick);
weechat_log_printf (" check_away. . . . . : %d", ptr_notify->check_away);
weechat_log_printf (" is_on_server. . . . : %d", ptr_notify->is_on_server);
weechat_log_printf (" away_message. . . . : '%s'", ptr_notify->away_message);
weechat_log_printf (" ison_received . . . : %d", ptr_notify->ison_received);
weechat_log_printf (" prev_notify . . . . : %p", ptr_notify->prev_notify);
weechat_log_printf (" next_notify . . . . : %p", ptr_notify->next_notify);
}
}
+30 -30
View File
@@ -1201,15 +1201,15 @@ irc_redirect_pattern_print_log ()
ptr_redirect_pattern = ptr_redirect_pattern->next_redirect)
{
weechat_log_printf ("");
weechat_log_printf ("[redirect_pattern (addr:0x%lx)]", ptr_redirect_pattern);
weechat_log_printf (" name . . . . . . . . : '%s'", ptr_redirect_pattern->name);
weechat_log_printf (" temp_pattern . . . . : %d", ptr_redirect_pattern->temp_pattern);
weechat_log_printf (" timeout. . . . . . . : %d", ptr_redirect_pattern->timeout);
weechat_log_printf (" cmd_start. . . . . . : '%s'", ptr_redirect_pattern->cmd_start);
weechat_log_printf (" cmd_stop . . . . . . : '%s'", ptr_redirect_pattern->cmd_stop);
weechat_log_printf (" cmd_extra. . . . . . : '%s'", ptr_redirect_pattern->cmd_extra);
weechat_log_printf (" prev_redirect. . . . : 0x%lx", ptr_redirect_pattern->prev_redirect);
weechat_log_printf (" next_redirect. . . . : 0x%lx", ptr_redirect_pattern->next_redirect);
weechat_log_printf ("[redirect_pattern (addr:%p)]", ptr_redirect_pattern);
weechat_log_printf (" name . . . . . . . . : '%s'", ptr_redirect_pattern->name);
weechat_log_printf (" temp_pattern . . . . : %d", ptr_redirect_pattern->temp_pattern);
weechat_log_printf (" timeout. . . . . . . : %d", ptr_redirect_pattern->timeout);
weechat_log_printf (" cmd_start. . . . . . : '%s'", ptr_redirect_pattern->cmd_start);
weechat_log_printf (" cmd_stop . . . . . . : '%s'", ptr_redirect_pattern->cmd_stop);
weechat_log_printf (" cmd_extra. . . . . . : '%s'", ptr_redirect_pattern->cmd_extra);
weechat_log_printf (" prev_redirect. . . . : %p", ptr_redirect_pattern->prev_redirect);
weechat_log_printf (" next_redirect. . . . : %p", ptr_redirect_pattern->next_redirect);
}
}
@@ -1226,36 +1226,36 @@ irc_redirect_print_log (struct t_irc_server *server)
ptr_redirect = ptr_redirect->next_redirect)
{
weechat_log_printf ("");
weechat_log_printf (" => redirect (addr:0x%lx):", ptr_redirect);
weechat_log_printf (" server. . . . . . . : 0x%lx ('%s')",
weechat_log_printf (" => redirect (addr:%p):", ptr_redirect);
weechat_log_printf (" server. . . . . . . : %p ('%s')",
ptr_redirect->server, ptr_redirect->server->name);
weechat_log_printf (" pattern . . . . . . : '%s'", ptr_redirect->pattern);
weechat_log_printf (" signal. . . . . . . : '%s'", ptr_redirect->signal);
weechat_log_printf (" count . . . . . . . : %d", ptr_redirect->count);
weechat_log_printf (" current_count . . . : %d", ptr_redirect->current_count);
weechat_log_printf (" string. . . . . . . : '%s'", ptr_redirect->string);
weechat_log_printf (" timeout . . . . . . : %d", ptr_redirect->timeout);
weechat_log_printf (" command . . . . . . : '%s'", ptr_redirect->command);
weechat_log_printf (" assigned_to_command : %d", ptr_redirect->assigned_to_command);
weechat_log_printf (" start_time. . . . . : %lld", (long long)ptr_redirect->start_time);
weechat_log_printf (" cmd_start . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" pattern . . . . . . : '%s'", ptr_redirect->pattern);
weechat_log_printf (" signal. . . . . . . : '%s'", ptr_redirect->signal);
weechat_log_printf (" count . . . . . . . : %d", ptr_redirect->count);
weechat_log_printf (" current_count . . . : %d", ptr_redirect->current_count);
weechat_log_printf (" string. . . . . . . : '%s'", ptr_redirect->string);
weechat_log_printf (" timeout . . . . . . : %d", ptr_redirect->timeout);
weechat_log_printf (" command . . . . . . : '%s'", ptr_redirect->command);
weechat_log_printf (" assigned_to_command : %d", ptr_redirect->assigned_to_command);
weechat_log_printf (" start_time. . . . . : %lld", (long long)ptr_redirect->start_time);
weechat_log_printf (" cmd_start . . . . . : %p (hashtable: '%s')",
ptr_redirect->cmd_start,
weechat_hashtable_get_string (ptr_redirect->cmd_start, "keys_values"));
weechat_log_printf (" cmd_stop. . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" cmd_stop. . . . . . : %p (hashtable: '%s')",
ptr_redirect->cmd_stop,
weechat_hashtable_get_string (ptr_redirect->cmd_stop, "keys_values"));
weechat_log_printf (" cmd_extra . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" cmd_extra . . . . . : %p (hashtable: '%s')",
ptr_redirect->cmd_extra,
weechat_hashtable_get_string (ptr_redirect->cmd_extra, "keys_values"));
weechat_log_printf (" cmd_start_received. : %d", ptr_redirect->cmd_start_received);
weechat_log_printf (" cmd_stop_received . : %d", ptr_redirect->cmd_stop_received);
weechat_log_printf (" cmd_filter. . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" cmd_start_received. : %d", ptr_redirect->cmd_start_received);
weechat_log_printf (" cmd_stop_received . : %d", ptr_redirect->cmd_stop_received);
weechat_log_printf (" cmd_filter. . . . . : %p (hashtable: '%s')",
ptr_redirect->cmd_filter,
weechat_hashtable_get_string (ptr_redirect->cmd_filter, "keys_values"));
weechat_log_printf (" output. . . . . . . : '%s'", ptr_redirect->output);
weechat_log_printf (" output_size . . . . : %d", ptr_redirect->output_size);
weechat_log_printf (" prev_redirect . . . : 0x%lx", ptr_redirect->prev_redirect);
weechat_log_printf (" next_redirect . . . : 0x%lx", ptr_redirect->next_redirect);
weechat_log_printf (" output. . . . . . . : '%s'", ptr_redirect->output);
weechat_log_printf (" output_size . . . . : %d", ptr_redirect->output_size);
weechat_log_printf (" prev_redirect . . . : %p", ptr_redirect->prev_redirect);
weechat_log_printf (" next_redirect . . . : %p", ptr_redirect->next_redirect);
}
}
+102 -102
View File
@@ -7044,7 +7044,7 @@ irc_server_print_log ()
ptr_server = ptr_server->next_server)
{
weechat_log_printf ("");
weechat_log_printf ("[server %s (addr:0x%lx)]", ptr_server->name, ptr_server);
weechat_log_printf ("[server %s (addr:%p)]", ptr_server->name, ptr_server);
/* addresses */
if (weechat_config_option_is_null (ptr_server->options[IRC_SERVER_OPTION_ADDRESSES]))
weechat_log_printf (" addresses . . . . . . . . : null ('%s')",
@@ -7334,139 +7334,139 @@ irc_server_print_log ()
weechat_log_printf (" msg_quit. . . . . . . . . : '%s'",
weechat_config_string (ptr_server->options[IRC_SERVER_OPTION_MSG_QUIT]));
/* other server variables */
weechat_log_printf (" temp_server . . . . . . . : %d", ptr_server->temp_server);
weechat_log_printf (" fake_server . . . . . . . : %d", ptr_server->fake_server);
weechat_log_printf (" reloading_from_config . . : %d", ptr_server->reloaded_from_config);
weechat_log_printf (" reloaded_from_config. . . : %d", ptr_server->reloaded_from_config);
weechat_log_printf (" addresses_eval. . . . . . : '%s'", ptr_server->addresses_eval);
weechat_log_printf (" addresses_count . . . . . : %d", ptr_server->addresses_count);
weechat_log_printf (" addresses_array . . . . . : 0x%lx", ptr_server->addresses_array);
weechat_log_printf (" ports_array . . . . . . . : 0x%lx", ptr_server->ports_array);
weechat_log_printf (" retry_array . . . . . . . : 0x%lx", ptr_server->retry_array);
weechat_log_printf (" index_current_address . . : %d", ptr_server->index_current_address);
weechat_log_printf (" current_address . . . . . : '%s'", ptr_server->current_address);
weechat_log_printf (" current_ip. . . . . . . . : '%s'", ptr_server->current_ip);
weechat_log_printf (" current_port. . . . . . . : %d", ptr_server->current_port);
weechat_log_printf (" current_retry . . . . . . : %d", ptr_server->current_retry);
weechat_log_printf (" sock. . . . . . . . . . . : %d", ptr_server->sock);
weechat_log_printf (" hook_connect. . . . . . . : 0x%lx", ptr_server->hook_connect);
weechat_log_printf (" hook_fd . . . . . . . . . : 0x%lx", ptr_server->hook_fd);
weechat_log_printf (" hook_timer_connection . . : 0x%lx", ptr_server->hook_timer_connection);
weechat_log_printf (" hook_timer_sasl . . . . . : 0x%lx", ptr_server->hook_timer_sasl);
weechat_log_printf (" hook_timer_anti_flood . . : 0x%lx", ptr_server->hook_timer_anti_flood);
weechat_log_printf (" sasl_scram_client_first . : '%s'", ptr_server->sasl_scram_client_first);
weechat_log_printf (" temp_server . . . . . . . : %d", ptr_server->temp_server);
weechat_log_printf (" fake_server . . . . . . . : %d", ptr_server->fake_server);
weechat_log_printf (" reloading_from_config . . : %d", ptr_server->reloaded_from_config);
weechat_log_printf (" reloaded_from_config. . . : %d", ptr_server->reloaded_from_config);
weechat_log_printf (" addresses_eval. . . . . . : '%s'", ptr_server->addresses_eval);
weechat_log_printf (" addresses_count . . . . . : %d", ptr_server->addresses_count);
weechat_log_printf (" addresses_array . . . . . : %p", ptr_server->addresses_array);
weechat_log_printf (" ports_array . . . . . . . : %p", ptr_server->ports_array);
weechat_log_printf (" retry_array . . . . . . . : %p", ptr_server->retry_array);
weechat_log_printf (" index_current_address . . : %d", ptr_server->index_current_address);
weechat_log_printf (" current_address . . . . . : '%s'", ptr_server->current_address);
weechat_log_printf (" current_ip. . . . . . . . : '%s'", ptr_server->current_ip);
weechat_log_printf (" current_port. . . . . . . : %d", ptr_server->current_port);
weechat_log_printf (" current_retry . . . . . . : %d", ptr_server->current_retry);
weechat_log_printf (" sock. . . . . . . . . . . : %d", ptr_server->sock);
weechat_log_printf (" hook_connect. . . . . . . : %p", ptr_server->hook_connect);
weechat_log_printf (" hook_fd . . . . . . . . . : %p", ptr_server->hook_fd);
weechat_log_printf (" hook_timer_connection . . : %p", ptr_server->hook_timer_connection);
weechat_log_printf (" hook_timer_sasl . . . . . : %p", ptr_server->hook_timer_sasl);
weechat_log_printf (" hook_timer_anti_flood . . : %p", ptr_server->hook_timer_anti_flood);
weechat_log_printf (" sasl_scram_client_first . : '%s'", ptr_server->sasl_scram_client_first);
weechat_log_printf (" sasl_scram_salted_pwd . . : (hidden)");
weechat_log_printf (" sasl_scram_salted_pwd_size: %d", ptr_server->sasl_scram_salted_pwd_size);
weechat_log_printf (" sasl_scram_salted_pwd_size: %d", ptr_server->sasl_scram_salted_pwd_size);
weechat_log_printf (" sasl_scram_auth_message . : (hidden)");
weechat_log_printf (" sasl_temp_username. . . . : '%s'", ptr_server->sasl_temp_username);
weechat_log_printf (" sasl_temp_username. . . . : '%s'", ptr_server->sasl_temp_username);
weechat_log_printf (" sasl_temp_password. . . . : (hidden)");
weechat_log_printf (" authentication_method . . : %d", ptr_server->authentication_method);
weechat_log_printf (" sasl_mechanism_used . . . : %d", ptr_server->sasl_mechanism_used);
weechat_log_printf (" is_connected. . . . . . . : %d", ptr_server->is_connected);
weechat_log_printf (" tls_connected . . . . . . : %d", ptr_server->tls_connected);
weechat_log_printf (" disconnected. . . . . . . : %d", ptr_server->disconnected);
weechat_log_printf (" gnutls_sess . . . . . . . : 0x%lx", ptr_server->gnutls_sess);
weechat_log_printf (" tls_cert. . . . . . . . . : 0x%lx", ptr_server->tls_cert);
weechat_log_printf (" tls_cert_key. . . . . . . : 0x%lx", ptr_server->tls_cert_key);
weechat_log_printf (" unterminated_message. . . : '%s'", ptr_server->unterminated_message);
weechat_log_printf (" nicks_count . . . . . . . : %d", ptr_server->nicks_count);
weechat_log_printf (" nicks_array . . . . . . . : 0x%lx", ptr_server->nicks_array);
weechat_log_printf (" nick_first_tried. . . . . : %d", ptr_server->nick_first_tried);
weechat_log_printf (" nick_alternate_number . . : %d", ptr_server->nick_alternate_number);
weechat_log_printf (" nick. . . . . . . . . . . : '%s'", ptr_server->nick);
weechat_log_printf (" nick_modes. . . . . . . . : '%s'", ptr_server->nick_modes);
weechat_log_printf (" host. . . . . . . . . . . : '%s'", ptr_server->host);
weechat_log_printf (" checking_cap_ls . . . . . : %d", ptr_server->checking_cap_ls);
weechat_log_printf (" cap_ls. . . . . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" authentication_method . . : %d", ptr_server->authentication_method);
weechat_log_printf (" sasl_mechanism_used . . . : %d", ptr_server->sasl_mechanism_used);
weechat_log_printf (" is_connected. . . . . . . : %d", ptr_server->is_connected);
weechat_log_printf (" tls_connected . . . . . . : %d", ptr_server->tls_connected);
weechat_log_printf (" disconnected. . . . . . . : %d", ptr_server->disconnected);
weechat_log_printf (" gnutls_sess . . . . . . . : %p", ptr_server->gnutls_sess);
weechat_log_printf (" tls_cert. . . . . . . . . : %p", ptr_server->tls_cert);
weechat_log_printf (" tls_cert_key. . . . . . . : %p", ptr_server->tls_cert_key);
weechat_log_printf (" unterminated_message. . . : '%s'", ptr_server->unterminated_message);
weechat_log_printf (" nicks_count . . . . . . . : %d", ptr_server->nicks_count);
weechat_log_printf (" nicks_array . . . . . . . : %p", ptr_server->nicks_array);
weechat_log_printf (" nick_first_tried. . . . . : %d", ptr_server->nick_first_tried);
weechat_log_printf (" nick_alternate_number . . : %d", ptr_server->nick_alternate_number);
weechat_log_printf (" nick. . . . . . . . . . . : '%s'", ptr_server->nick);
weechat_log_printf (" nick_modes. . . . . . . . : '%s'", ptr_server->nick_modes);
weechat_log_printf (" host. . . . . . . . . . . : '%s'", ptr_server->host);
weechat_log_printf (" checking_cap_ls . . . . . : %d", ptr_server->checking_cap_ls);
weechat_log_printf (" cap_ls. . . . . . . . . . : %p (hashtable: '%s')",
ptr_server->cap_ls,
weechat_hashtable_get_string (ptr_server->cap_ls, "keys_values"));
weechat_log_printf (" checking_cap_list . . . . : %d", ptr_server->checking_cap_list);
weechat_log_printf (" cap_list. . . . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" checking_cap_list . . . . : %d", ptr_server->checking_cap_list);
weechat_log_printf (" cap_list. . . . . . . . . : %p (hashtable: '%s')",
ptr_server->cap_list,
weechat_hashtable_get_string (ptr_server->cap_list, "keys_values"));
weechat_log_printf (" multiline_max_bytes . . . : %d", ptr_server->multiline_max_bytes);
weechat_log_printf (" multiline_max_lines . . . : %d", ptr_server->multiline_max_lines);
weechat_log_printf (" isupport. . . . . . . . . : '%s'", ptr_server->isupport);
weechat_log_printf (" prefix_modes. . . . . . . : '%s'", ptr_server->prefix_modes);
weechat_log_printf (" prefix_chars. . . . . . . : '%s'", ptr_server->prefix_chars);
weechat_log_printf (" msg_max_length. . . . . . : %d", ptr_server->msg_max_length);
weechat_log_printf (" nick_max_length . . . . . : %d", ptr_server->nick_max_length);
weechat_log_printf (" user_max_length . . . . . : %d", ptr_server->user_max_length);
weechat_log_printf (" host_max_length . . . . . : %d", ptr_server->host_max_length);
weechat_log_printf (" multiline_max_bytes . . . : %d", ptr_server->multiline_max_bytes);
weechat_log_printf (" multiline_max_lines . . . : %d", ptr_server->multiline_max_lines);
weechat_log_printf (" isupport. . . . . . . . . : '%s'", ptr_server->isupport);
weechat_log_printf (" prefix_modes. . . . . . . : '%s'", ptr_server->prefix_modes);
weechat_log_printf (" prefix_chars. . . . . . . : '%s'", ptr_server->prefix_chars);
weechat_log_printf (" msg_max_length. . . . . . : %d", ptr_server->msg_max_length);
weechat_log_printf (" nick_max_length . . . . . : %d", ptr_server->nick_max_length);
weechat_log_printf (" user_max_length . . . . . : %d", ptr_server->user_max_length);
weechat_log_printf (" host_max_length . . . . . : %d", ptr_server->host_max_length);
weechat_log_printf (" casemapping . . . . . . . : %d (%s)",
ptr_server->casemapping,
irc_server_casemapping_string[ptr_server->casemapping]);
weechat_log_printf (" utf8mapping . . . . . . . : %d (%s)",
ptr_server->utf8mapping,
irc_server_utf8mapping_string[ptr_server->utf8mapping]);
weechat_log_printf (" utf8only. . . . . . . . . : %d", ptr_server->utf8only);
weechat_log_printf (" chantypes . . . . . . . . : '%s'", ptr_server->chantypes);
weechat_log_printf (" chanmodes . . . . . . . . : '%s'", ptr_server->chanmodes);
weechat_log_printf (" monitor . . . . . . . . . : %d", ptr_server->monitor);
weechat_log_printf (" monitor_time. . . . . . . : %lld", (long long)ptr_server->monitor_time);
weechat_log_printf (" clienttagdeny . . . . . . : '%s'", ptr_server->clienttagdeny);
weechat_log_printf (" clienttagdeny_count . . . : %d", ptr_server->clienttagdeny_count);
weechat_log_printf (" clienttagdeny_array . . . : 0x%lx", ptr_server->clienttagdeny_array);
weechat_log_printf (" typing_allowed . . . . . : %d", ptr_server->typing_allowed);
weechat_log_printf (" reconnect_delay . . . . . : %d", ptr_server->reconnect_delay);
weechat_log_printf (" reconnect_start . . . . . : %lld", (long long)ptr_server->reconnect_start);
weechat_log_printf (" command_time. . . . . . . : %lld", (long long)ptr_server->command_time);
weechat_log_printf (" autojoin_time . . . . . . : %lld", (long long)ptr_server->autojoin_time);
weechat_log_printf (" autojoin_done . . . . . . : %d", ptr_server->autojoin_done);
weechat_log_printf (" disable_autojoin. . . . . : %d", ptr_server->disable_autojoin);
weechat_log_printf (" is_away . . . . . . . . . : %d", ptr_server->is_away);
weechat_log_printf (" away_message. . . . . . . : '%s'", ptr_server->away_message);
weechat_log_printf (" away_time . . . . . . . . : %lld", (long long)ptr_server->away_time);
weechat_log_printf (" lag . . . . . . . . . . . : %d", ptr_server->lag);
weechat_log_printf (" lag_displayed . . . . . . : %d", ptr_server->lag_displayed);
weechat_log_printf (" utf8only. . . . . . . . . : %d", ptr_server->utf8only);
weechat_log_printf (" chantypes . . . . . . . . : '%s'", ptr_server->chantypes);
weechat_log_printf (" chanmodes . . . . . . . . : '%s'", ptr_server->chanmodes);
weechat_log_printf (" monitor . . . . . . . . . : %d", ptr_server->monitor);
weechat_log_printf (" monitor_time. . . . . . . : %lld", (long long)ptr_server->monitor_time);
weechat_log_printf (" clienttagdeny . . . . . . : '%s'", ptr_server->clienttagdeny);
weechat_log_printf (" clienttagdeny_count . . . : %d", ptr_server->clienttagdeny_count);
weechat_log_printf (" clienttagdeny_array . . . : %p", ptr_server->clienttagdeny_array);
weechat_log_printf (" typing_allowed . . . . . : %d", ptr_server->typing_allowed);
weechat_log_printf (" reconnect_delay . . . . . : %d", ptr_server->reconnect_delay);
weechat_log_printf (" reconnect_start . . . . . : %lld", (long long)ptr_server->reconnect_start);
weechat_log_printf (" command_time. . . . . . . : %lld", (long long)ptr_server->command_time);
weechat_log_printf (" autojoin_time . . . . . . : %lld", (long long)ptr_server->autojoin_time);
weechat_log_printf (" autojoin_done . . . . . . : %d", ptr_server->autojoin_done);
weechat_log_printf (" disable_autojoin. . . . . : %d", ptr_server->disable_autojoin);
weechat_log_printf (" is_away . . . . . . . . . : %d", ptr_server->is_away);
weechat_log_printf (" away_message. . . . . . . : '%s'", ptr_server->away_message);
weechat_log_printf (" away_time . . . . . . . . : %lld", (long long)ptr_server->away_time);
weechat_log_printf (" lag . . . . . . . . . . . : %d", ptr_server->lag);
weechat_log_printf (" lag_displayed . . . . . . : %d", ptr_server->lag_displayed);
weechat_log_printf (" lag_check_time. . . . . . : tv_sec:%d, tv_usec:%d",
ptr_server->lag_check_time.tv_sec,
ptr_server->lag_check_time.tv_usec);
weechat_log_printf (" lag_next_check. . . . . . : %lld", (long long)ptr_server->lag_next_check);
weechat_log_printf (" lag_last_refresh. . . . . : %lld", (long long)ptr_server->lag_last_refresh);
weechat_log_printf (" cmd_list_regexp . . . . . : 0x%lx", ptr_server->cmd_list_regexp);
weechat_log_printf (" list. . . . . . . . . . . : 0x%lx", ptr_server->list);
weechat_log_printf (" lag_next_check. . . . . . : %lld", (long long)ptr_server->lag_next_check);
weechat_log_printf (" lag_last_refresh. . . . . : %lld", (long long)ptr_server->lag_last_refresh);
weechat_log_printf (" cmd_list_regexp . . . . . : %p", ptr_server->cmd_list_regexp);
weechat_log_printf (" list. . . . . . . . . . . : %p", ptr_server->list);
if (ptr_server->list)
{
weechat_log_printf (" buffer. . . . . . . . . : 0x%lx", ptr_server->list->buffer);
weechat_log_printf (" channels. . . . . . . . : 0x%lx", ptr_server->list->channels);
weechat_log_printf (" filter_channels . . . . : 0x%lx", ptr_server->list->filter_channels);
weechat_log_printf (" buffer. . . . . . . . . : %p", ptr_server->list->buffer);
weechat_log_printf (" channels. . . . . . . . : %p", ptr_server->list->channels);
weechat_log_printf (" filter_channels . . . . : %p", ptr_server->list->filter_channels);
}
weechat_log_printf (" last_away_check . . . . . : %lld", (long long)ptr_server->last_away_check);
weechat_log_printf (" last_data_purge . . . . . : %lld", (long long)ptr_server->last_data_purge);
weechat_log_printf (" last_away_check . . . . . : %lld", (long long)ptr_server->last_away_check);
weechat_log_printf (" last_data_purge . . . . . : %lld", (long long)ptr_server->last_data_purge);
for (i = 0; i < IRC_SERVER_NUM_OUTQUEUES_PRIO; i++)
{
weechat_log_printf (" outqueue[%02d]. . . . . . . : 0x%lx", i, ptr_server->outqueue[i]);
weechat_log_printf (" last_outqueue[%02d] . . . . : 0x%lx", i, ptr_server->last_outqueue[i]);
weechat_log_printf (" outqueue[%02d]. . . . . . . : %p", i, ptr_server->outqueue[i]);
weechat_log_printf (" last_outqueue[%02d] . . . . : %p", i, ptr_server->last_outqueue[i]);
}
weechat_log_printf (" redirects . . . . . . . . : 0x%lx", ptr_server->redirects);
weechat_log_printf (" last_redirect . . . . . . : 0x%lx", ptr_server->last_redirect);
weechat_log_printf (" notify_list . . . . . . . : 0x%lx", ptr_server->notify_list);
weechat_log_printf (" last_notify . . . . . . . : 0x%lx", ptr_server->last_notify);
weechat_log_printf (" notify_count. . . . . . . : %d", ptr_server->notify_count);
weechat_log_printf (" join_manual . . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" redirects . . . . . . . . : %p", ptr_server->redirects);
weechat_log_printf (" last_redirect . . . . . . : %p", ptr_server->last_redirect);
weechat_log_printf (" notify_list . . . . . . . : %p", ptr_server->notify_list);
weechat_log_printf (" last_notify . . . . . . . : %p", ptr_server->last_notify);
weechat_log_printf (" notify_count. . . . . . . : %d", ptr_server->notify_count);
weechat_log_printf (" join_manual . . . . . . . : %p (hashtable: '%s')",
ptr_server->join_manual,
weechat_hashtable_get_string (ptr_server->join_manual, "keys_values"));
weechat_log_printf (" join_channel_key. . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" join_channel_key. . . . . : %p (hashtable: '%s')",
ptr_server->join_channel_key,
weechat_hashtable_get_string (ptr_server->join_channel_key, "keys_values"));
weechat_log_printf (" join_noswitch . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" join_noswitch . . . . . . : %p (hashtable: '%s')",
ptr_server->join_noswitch,
weechat_hashtable_get_string (ptr_server->join_noswitch, "keys_values"));
weechat_log_printf (" echo_msg_recv . . . . . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" echo_msg_recv . . . . . . : %p (hashtable: '%s')",
ptr_server->echo_msg_recv,
weechat_hashtable_get_string (ptr_server->echo_msg_recv, "keys_values"));
weechat_log_printf (" names_channel_filter. . . : 0x%lx (hashtable: '%s')",
weechat_log_printf (" names_channel_filter. . . : %p (hashtable: '%s')",
ptr_server->names_channel_filter,
weechat_hashtable_get_string (ptr_server->names_channel_filter, "keys_values"));
weechat_log_printf (" batches . . . . . . . . . : 0x%lx", ptr_server->batches);
weechat_log_printf (" last_batch. . . . . . . . : 0x%lx", ptr_server->last_batch);
weechat_log_printf (" buffer. . . . . . . . . . : 0x%lx", ptr_server->buffer);
weechat_log_printf (" buffer_as_string. . . . . : 0x%lx", ptr_server->buffer_as_string);
weechat_log_printf (" channels. . . . . . . . . : 0x%lx", ptr_server->channels);
weechat_log_printf (" last_channel. . . . . . . : 0x%lx", ptr_server->last_channel);
weechat_log_printf (" prev_server . . . . . . . : 0x%lx", ptr_server->prev_server);
weechat_log_printf (" next_server . . . . . . . : 0x%lx", ptr_server->next_server);
weechat_log_printf (" batches . . . . . . . . . : %p", ptr_server->batches);
weechat_log_printf (" last_batch. . . . . . . . : %p", ptr_server->last_batch);
weechat_log_printf (" buffer. . . . . . . . . . : %p", ptr_server->buffer);
weechat_log_printf (" buffer_as_string. . . . . : %p", ptr_server->buffer_as_string);
weechat_log_printf (" channels. . . . . . . . . : %p", ptr_server->channels);
weechat_log_printf (" last_channel. . . . . . . : %p", ptr_server->last_channel);
weechat_log_printf (" prev_server . . . . . . . : %p", ptr_server->prev_server);
weechat_log_printf (" next_server . . . . . . . : %p", ptr_server->next_server);
irc_redirect_print_log (ptr_server);
+2 -2
View File
@@ -143,8 +143,8 @@ irc_typing_channel_set_nick (struct t_irc_channel *channel, const char *nick,
char signal_data[1024];
snprintf (signal_data, sizeof (signal_data),
"0x%lx;%s;%s",
(unsigned long)channel->buffer,
"%p;%s;%s",
channel->buffer,
(state == IRC_CHANNEL_TYPING_STATE_ACTIVE) ? "typing" :
((state == IRC_CHANNEL_TYPING_STATE_PAUSED) ? "paused" : "off"),
nick);