1
0
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:
Sébastien Helleu
2018-10-01 22:56:40 +02:00
parent d6d8b9094f
commit fb3ca3caae
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -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)