diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-01 22:56:40 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-10-01 22:57:13 +0200 |
commit | fb3ca3caaee575e6858c3ce65887bb8197c03983 (patch) | |
tree | d8ac94ad22da1bdeeca787272e36c290d5578fd1 /src/gui/gui-buffer.c | |
parent | d6d8b9094fb665f485af18ac1b8ce63944a23197 (diff) | |
download | weechat-fb3ca3caaee575e6858c3ce65887bb8197c03983.zip |
core: fix format of variables in printf-like functions (from int to long and long long)
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) |