Cleanup: fix long/int format string errors.
authorKp <kp@valhallalegends.com>
Sun, 7 Dec 2008 21:48:48 +0000 (15:48 -0600)
committerKp <kp@valhallalegends.com>
Sat, 13 Dec 2008 19:57:38 +0000 (13:57 -0600)
Two format strings used long values with int format specifiers.
Fix the format specifiers so that the entire value can be printed.

lib/silcutil/silcschedule.c

index 31168d307d8a65701b38292f7e0b9e2cc8a05e2a..8d9738debdc7e214a1ba4b8aa29d8e3c4e2e9ccc 100644 (file)
@@ -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