From: Kp Date: Sun, 7 Dec 2008 21:48:48 +0000 (-0600) Subject: Cleanup: fix long/int format string errors. X-Git-Tag: silc.toolkit.1.1.9~6^2~1 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=d8bab7c3937644509e6759b38a5e2ee9bfaf273e Cleanup: fix long/int format string errors. Two format strings used long values with int format specifiers. Fix the format specifiers so that the entire value can be printed. --- diff --git a/lib/silcutil/silcschedule.c b/lib/silcutil/silcschedule.c index 31168d30..8d9738de 100644 --- a/lib/silcutil/silcschedule.c +++ b/lib/silcutil/silcschedule.c @@ -186,7 +186,7 @@ static void silc_schedule_select_timeout(SilcSchedule schedule) if (task) { schedule->timeout = curtime; schedule->has_timeout = TRUE; - SILC_LOG_DEBUG(("timeout: sec=%d, usec=%d", schedule->timeout.tv_sec, + SILC_LOG_DEBUG(("timeout: sec=%ld, usec=%ld", schedule->timeout.tv_sec, schedule->timeout.tv_usec)); } } @@ -600,7 +600,7 @@ SilcTask silc_schedule_task_add(SilcSchedule schedule, SilcUInt32 fd, } } - SILC_LOG_DEBUG(("New timeout task %p: sec=%d, usec=%d", ttask, + SILC_LOG_DEBUG(("New timeout task %p: sec=%ld, usec=%ld", ttask, seconds, useconds)); /* Add task to correct spot so that the first task in the list has