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