diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-debug.c | 4 | ||||
-rw-r--r-- | src/core/wee-hashtable.c | 2 | ||||
-rw-r--r-- | src/gui/gui-buffer.c | 6 | ||||
-rw-r--r-- | src/gui/gui-hotlist.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c index f92b1bab5..44d20e616 100644 --- a/src/core/wee-debug.c +++ b/src/core/wee-debug.c @@ -615,13 +615,13 @@ debug_display_time_elapsed (struct timeval *time1, struct timeval *time2, if (display) { gui_chat_printf (NULL, - "debug: time[%s] -> %lld:%02lld:%02lld.%06d", + "debug: time[%s] -> %lld:%02lld:%02lld.%06lld", (message) ? message : "?", diff_hour, diff_min, diff_sec, diff_usec); } else { - log_printf ("debug: time[%s] -> %lld:%02lld:%02lld.%06d", + log_printf ("debug: time[%s] -> %lld:%02lld:%02lld.%06lld", (message) ? message : "?", diff_hour, diff_min, diff_sec, diff_usec); } diff --git a/src/core/wee-hashtable.c b/src/core/wee-hashtable.c index 3c5fff844..18fb28d3e 100644 --- a/src/core/wee-hashtable.c +++ b/src/core/wee-hashtable.c @@ -1341,7 +1341,7 @@ hashtable_print_log (struct t_hashtable *hashtable, const char *name) log_printf (" value (buffer) . . : 0x%lx", ptr_item->value); break; case HASHTABLE_TIME: - log_printf (" value (time) . . . : %d", *((time_t *)ptr_item->value)); + log_printf (" value (time) . . . : %lld", (long long)(*((time_t *)ptr_item->value))); break; case HASHTABLE_NUM_TYPES: break; diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index a108c8c14..19bfc03bd 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -4511,10 +4511,12 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer) free (tags); snprintf (buf, sizeof (buf), "%s", ctime (&ptr_line->data->date)); buf[strlen (buf) - 1] = '\0'; - log_printf (" date: %d = %s", ptr_line->data->date, buf); + log_printf (" date: %lld = %s", + (long long)(ptr_line->data->date), buf); snprintf (buf, sizeof (buf), "%s", ctime (&ptr_line->data->date_printed)); buf[strlen (buf) - 1] = '\0'; - log_printf (" date_printed: %d = %s", ptr_line->data->date_printed, buf); + log_printf (" date_printed: %lld = %s", + (long long)ptr_line->data->date_printed, buf); /* display raw message for line */ if (ptr_line->data->message) diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c index 182309093..be4ebbab7 100644 --- a/src/gui/gui-hotlist.c +++ b/src/gui/gui-hotlist.c @@ -685,7 +685,7 @@ gui_hotlist_print_log () { log_printf ("[hotlist (addr:0x%lx)]", ptr_hotlist); log_printf (" priority . . . . . . . : %d", ptr_hotlist->priority); - log_printf (" creation_time. . . . . : tv_sec:%d, tv_usec:%d", + log_printf (" creation_time. . . . . : tv_sec:%ld, tv_usec:%ld", ptr_hotlist->creation_time.tv_sec, ptr_hotlist->creation_time.tv_usec); log_printf (" buffer . . . . . . . . : 0x%lx", ptr_hotlist->buffer); |