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/core | |
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/core')
-rw-r--r-- | src/core/wee-debug.c | 4 | ||||
-rw-r--r-- | src/core/wee-hashtable.c | 2 |
2 files changed, 3 insertions, 3 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; |