mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: fix format of variables in printf-like functions (from int to long and long long)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user