diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-02-12 07:34:18 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-02-12 07:34:18 +0100 |
commit | 094abc57ed53e550d8aaca15ceec09d3e5f0928f (patch) | |
tree | 4ee3e4cef7a1c18e6eb164ba50bff9ae0e4c1abb /src/core/wee-list.c | |
parent | e2225c321d9fb2b5f1fffc0b81ea82a4f2dbb9e5 (diff) | |
download | weechat-094abc57ed53e550d8aaca15ceec09d3e5f0928f.zip |
core: add missing info in function weelist_print_log
Diffstat (limited to 'src/core/wee-list.c')
-rw-r--r-- | src/core/wee-list.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/core/wee-list.c b/src/core/wee-list.c index a1fa7e906..7ea9027a4 100644 --- a/src/core/wee-list.c +++ b/src/core/wee-list.c @@ -435,15 +435,22 @@ void weelist_print_log (struct t_weelist *weelist, const char *name) { struct t_weelist_item *ptr_item; + int i; log_printf ("[weelist %s (addr:0x%lx)]", name, weelist); + log_printf (" items. . . . . . . . . : 0x%lx", weelist->items); + log_printf (" last_item. . . . . . . : 0x%lx", weelist->last_item); + log_printf (" size . . . . . . . . . : %d", weelist->size); + i = 0; for (ptr_item = weelist->items; ptr_item; ptr_item = ptr_item->next_item) { - log_printf (" data . . . . . . . . . : '%s'", ptr_item->data); - log_printf (" user_data. . . . . . . : 0x%lx", ptr_item->user_data); - log_printf (" prev_item. . . . . . . : 0x%lx", ptr_item->prev_item); - log_printf (" next_item. . . . . . . : 0x%lx", ptr_item->next_item); + log_printf (" [item %d (addr:0x%lx)]", i, ptr_item); + log_printf (" data . . . . . . . . : '%s'", ptr_item->data); + log_printf (" user_data. . . . . . : 0x%lx", ptr_item->user_data); + log_printf (" prev_item. . . . . . : 0x%lx", ptr_item->prev_item); + log_printf (" next_item. . . . . . : 0x%lx", ptr_item->next_item); + i++; } } |