1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

Renamed WeeChat log functions

This commit is contained in:
Sebastien Helleu
2007-11-24 18:08:41 +01:00
parent 26f31bb367
commit ab2dbe8151
20 changed files with 265 additions and 265 deletions
+66 -66
View File
@@ -880,27 +880,27 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
char hexa[(16 * 3) + 1], ascii[(16 * 2) + 1];
int hexa_pos, ascii_pos;
weechat_log_printf ("[buffer dump hexa (addr:0x%X)]\n", buffer);
log_printf ("[buffer dump hexa (addr:0x%X)]\n", buffer);
num_line = 1;
for (ptr_line = buffer->lines; ptr_line; ptr_line = ptr_line->next_line)
{
/* display line without colors */
message_without_colors = (ptr_line->message) ?
(char *)gui_color_decode ((unsigned char *)ptr_line->message) : NULL;
weechat_log_printf ("\n");
weechat_log_printf (" line %d: %s\n",
num_line,
(message_without_colors) ?
message_without_colors : "(null)");
log_printf ("\n");
log_printf (" line %d: %s\n",
num_line,
(message_without_colors) ?
message_without_colors : "(null)");
if (message_without_colors)
free (message_without_colors);
/* display raw message for line */
if (ptr_line->message)
{
weechat_log_printf ("\n");
weechat_log_printf (" raw data for line %d (with color codes):\n",
num_line);
log_printf ("\n");
log_printf (" raw data for line %d (with color codes):\n",
num_line);
msg_pos = 0;
hexa_pos = 0;
ascii_pos = 0;
@@ -916,14 +916,14 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
ascii_pos += 2;
if (ascii_pos == 32)
{
weechat_log_printf (" %-48s %s\n", hexa, ascii);
log_printf (" %-48s %s\n", hexa, ascii);
hexa_pos = 0;
ascii_pos = 0;
}
msg_pos++;
}
if (ascii_pos > 0)
weechat_log_printf (" %-48s %s\n", hexa, ascii);
log_printf (" %-48s %s\n", hexa, ascii);
}
num_line++;
@@ -945,64 +945,64 @@ gui_buffer_print_log ()
for (ptr_buffer = gui_buffers; ptr_buffer;
ptr_buffer = ptr_buffer->next_buffer)
{
weechat_log_printf ("\n");
weechat_log_printf ("[buffer (addr:0x%X)]\n", ptr_buffer);
weechat_log_printf (" plugin . . . . . . . . : 0x%X\n", ptr_buffer->plugin);
weechat_log_printf (" number . . . . . . . . : %d\n", ptr_buffer->number);
weechat_log_printf (" category . . . . . . . : '%s'\n", ptr_buffer->category);
weechat_log_printf (" name . . . . . . . . . : '%s'\n", ptr_buffer->name);
weechat_log_printf (" type . . . . . . . . . : %d\n", ptr_buffer->type);
weechat_log_printf (" notify_level . . . . . : %d\n", ptr_buffer->notify_level);
weechat_log_printf (" num_displayed. . . . . : %d\n", ptr_buffer->num_displayed);
weechat_log_printf (" title. . . . . . . . . : '%s'\n", ptr_buffer->title);
weechat_log_printf (" lines. . . . . . . . . : 0x%X\n", ptr_buffer->lines);
weechat_log_printf (" last_line. . . . . . . : 0x%X\n", ptr_buffer->last_line);
weechat_log_printf (" last_read_line . . . . : 0x%X\n", ptr_buffer->last_read_line);
weechat_log_printf (" lines_count. . . . . . : %d\n", ptr_buffer->lines_count);
weechat_log_printf (" prefix_max_length. . . : %d\n", ptr_buffer->prefix_max_length);
weechat_log_printf (" chat_refresh_needed. . : %d\n", ptr_buffer->chat_refresh_needed);
weechat_log_printf (" nicklist . . . . . . . : %d\n", ptr_buffer->nicklist);
weechat_log_printf (" nick_case_sensitive. . : %d\n", ptr_buffer->nick_case_sensitive);
weechat_log_printf (" nicks. . . . . . . . . : 0x%X\n", ptr_buffer->nicks);
weechat_log_printf (" last_nick. . . . . . . : 0x%X\n", ptr_buffer->last_nick);
weechat_log_printf (" nicks_count. . . . . . : %d\n", ptr_buffer->nicks_count);
weechat_log_printf (" input. . . . . . . . . : %d\n", ptr_buffer->input);
weechat_log_printf (" input_data_cb. . . . . : 0x%X\n", ptr_buffer->input_data_cb);
weechat_log_printf (" input_nick . . . . . . : '%s'\n", ptr_buffer->input_nick);
weechat_log_printf (" input_buffer . . . . . : '%s'\n", ptr_buffer->input_buffer);
weechat_log_printf (" input_buffer_color_mask: '%s'\n", ptr_buffer->input_buffer_color_mask);
weechat_log_printf (" input_buffer_alloc . . : %d\n", ptr_buffer->input_buffer_alloc);
weechat_log_printf (" input_buffer_size. . . : %d\n", ptr_buffer->input_buffer_size);
weechat_log_printf (" input_buffer_length. . : %d\n", ptr_buffer->input_buffer_length);
weechat_log_printf (" input_buffer_pos . . . : %d\n", ptr_buffer->input_buffer_pos);
weechat_log_printf (" input_buffer_1st_disp. : %d\n", ptr_buffer->input_buffer_1st_display);
weechat_log_printf (" completion . . . . . . : 0x%X\n", ptr_buffer->completion);
weechat_log_printf (" history. . . . . . . . : 0x%X\n", ptr_buffer->history);
weechat_log_printf (" last_history . . . . . : 0x%X\n", ptr_buffer->last_history);
weechat_log_printf (" ptr_history. . . . . . : 0x%X\n", ptr_buffer->ptr_history);
weechat_log_printf (" num_history. . . . . . : %d\n", ptr_buffer->num_history);
weechat_log_printf (" text_search. . . . . . : %d\n", ptr_buffer->text_search);
weechat_log_printf (" text_search_exact. . . : %d\n", ptr_buffer->text_search_exact);
weechat_log_printf (" text_search_found. . . : %d\n", ptr_buffer->text_search_found);
weechat_log_printf (" text_search_input. . . : '%s'\n", ptr_buffer->text_search_input);
weechat_log_printf (" prev_buffer. . . . . . : 0x%X\n", ptr_buffer->prev_buffer);
weechat_log_printf (" next_buffer. . . . . . : 0x%X\n", ptr_buffer->next_buffer);
log_printf ("\n");
log_printf ("[buffer (addr:0x%X)]\n", ptr_buffer);
log_printf (" plugin . . . . . . . . : 0x%X\n", ptr_buffer->plugin);
log_printf (" number . . . . . . . . : %d\n", ptr_buffer->number);
log_printf (" category . . . . . . . : '%s'\n", ptr_buffer->category);
log_printf (" name . . . . . . . . . : '%s'\n", ptr_buffer->name);
log_printf (" type . . . . . . . . . : %d\n", ptr_buffer->type);
log_printf (" notify_level . . . . . : %d\n", ptr_buffer->notify_level);
log_printf (" num_displayed. . . . . : %d\n", ptr_buffer->num_displayed);
log_printf (" title. . . . . . . . . : '%s'\n", ptr_buffer->title);
log_printf (" lines. . . . . . . . . : 0x%X\n", ptr_buffer->lines);
log_printf (" last_line. . . . . . . : 0x%X\n", ptr_buffer->last_line);
log_printf (" last_read_line . . . . : 0x%X\n", ptr_buffer->last_read_line);
log_printf (" lines_count. . . . . . : %d\n", ptr_buffer->lines_count);
log_printf (" prefix_max_length. . . : %d\n", ptr_buffer->prefix_max_length);
log_printf (" chat_refresh_needed. . : %d\n", ptr_buffer->chat_refresh_needed);
log_printf (" nicklist . . . . . . . : %d\n", ptr_buffer->nicklist);
log_printf (" nick_case_sensitive. . : %d\n", ptr_buffer->nick_case_sensitive);
log_printf (" nicks. . . . . . . . . : 0x%X\n", ptr_buffer->nicks);
log_printf (" last_nick. . . . . . . : 0x%X\n", ptr_buffer->last_nick);
log_printf (" nicks_count. . . . . . : %d\n", ptr_buffer->nicks_count);
log_printf (" input. . . . . . . . . : %d\n", ptr_buffer->input);
log_printf (" input_data_cb. . . . . : 0x%X\n", ptr_buffer->input_data_cb);
log_printf (" input_nick . . . . . . : '%s'\n", ptr_buffer->input_nick);
log_printf (" input_buffer . . . . . : '%s'\n", ptr_buffer->input_buffer);
log_printf (" input_buffer_color_mask: '%s'\n", ptr_buffer->input_buffer_color_mask);
log_printf (" input_buffer_alloc . . : %d\n", ptr_buffer->input_buffer_alloc);
log_printf (" input_buffer_size. . . : %d\n", ptr_buffer->input_buffer_size);
log_printf (" input_buffer_length. . : %d\n", ptr_buffer->input_buffer_length);
log_printf (" input_buffer_pos . . . : %d\n", ptr_buffer->input_buffer_pos);
log_printf (" input_buffer_1st_disp. : %d\n", ptr_buffer->input_buffer_1st_display);
log_printf (" completion . . . . . . : 0x%X\n", ptr_buffer->completion);
log_printf (" history. . . . . . . . : 0x%X\n", ptr_buffer->history);
log_printf (" last_history . . . . . : 0x%X\n", ptr_buffer->last_history);
log_printf (" ptr_history. . . . . . : 0x%X\n", ptr_buffer->ptr_history);
log_printf (" num_history. . . . . . : %d\n", ptr_buffer->num_history);
log_printf (" text_search. . . . . . : %d\n", ptr_buffer->text_search);
log_printf (" text_search_exact. . . : %d\n", ptr_buffer->text_search_exact);
log_printf (" text_search_found. . . : %d\n", ptr_buffer->text_search_found);
log_printf (" text_search_input. . . : '%s'\n", ptr_buffer->text_search_input);
log_printf (" prev_buffer. . . . . . : 0x%X\n", ptr_buffer->prev_buffer);
log_printf (" next_buffer. . . . . . : 0x%X\n", ptr_buffer->next_buffer);
for (ptr_nick = ptr_buffer->nicks; ptr_nick;
ptr_nick = ptr_nick->next_nick)
{
weechat_log_printf ("\n");
weechat_log_printf (" => nick %s (addr:0x%X):\n", ptr_nick->nick, ptr_nick);
weechat_log_printf (" sort_index. . . . . . : %d\n", ptr_nick->sort_index);
weechat_log_printf (" color_nick. . . . . . : %d\n", ptr_nick->color_nick);
weechat_log_printf (" prefix. . . . . . . . : '%c'\n", ptr_nick->prefix);
weechat_log_printf (" color_prefix. . . . . : %d\n", ptr_nick->color_prefix);
weechat_log_printf (" prev_nick . . . . . . : 0x%X\n", ptr_nick->prev_nick);
weechat_log_printf (" next_nick . . . . . . : 0x%X\n", ptr_nick->next_nick);
log_printf ("\n");
log_printf (" => nick %s (addr:0x%X):\n", ptr_nick->nick, ptr_nick);
log_printf (" sort_index. . . . . . : %d\n", ptr_nick->sort_index);
log_printf (" color_nick. . . . . . : %d\n", ptr_nick->color_nick);
log_printf (" prefix. . . . . . . . : '%c'\n", ptr_nick->prefix);
log_printf (" color_prefix. . . . . : %d\n", ptr_nick->color_prefix);
log_printf (" prev_nick . . . . . . : 0x%X\n", ptr_nick->prev_nick);
log_printf (" next_nick . . . . . . : 0x%X\n", ptr_nick->next_nick);
}
weechat_log_printf ("\n");
weechat_log_printf (" => last 100 lines:\n");
log_printf ("\n");
log_printf (" => last 100 lines:\n");
num = 0;
ptr_line = ptr_buffer->last_line;
while (ptr_line && (num < 100))
@@ -1018,9 +1018,9 @@ gui_buffer_print_log ()
while (ptr_line)
{
num--;
weechat_log_printf (" line N-%05d: str_time:'%s', prefix:'%s'\n",
log_printf (" line N-%05d: str_time:'%s', prefix:'%s'\n",
num, ptr_line->str_time, ptr_line->prefix);
weechat_log_printf (" data: '%s'\n",
log_printf (" data: '%s'\n",
ptr_line->message);
ptr_line = ptr_line->next_line;
@@ -1028,7 +1028,7 @@ gui_buffer_print_log ()
if (ptr_buffer->completion)
{
weechat_log_printf ("\n");
log_printf ("\n");
gui_completion_print_log (ptr_buffer->completion);
}
}