Various format strings used int values with long format specifiers.
Fix the format specifiers to be consistent with the values supplied.
if (idle && nickname) {
memset(buf, 0, sizeof(buf));
- snprintf(buf, sizeof(buf) - 1, "%lu %s",
+ snprintf(buf, sizeof(buf) - 1, "%u %s",
idle > 60 ? (idle / 60) : idle,
idle > 60 ? "minutes" : "seconds");
silc_config_strerror(ret)));
linebuf = silc_config_read_line(file, line);
if (linebuf) {
- SILC_SERVER_LOG_ERROR((" file %s line %lu: %s\n", filename,
+ SILC_SERVER_LOG_ERROR((" file %s line %u: %s\n", filename,
line, linebuf));
silc_free(linebuf);
}
*/
static void silc_ske_notify_failure(SilcSKE ske)
{
- SILC_LOG_DEBUG(("Notifying SKE %p owner of failure (failure_notified = %lu)",
+ SILC_LOG_DEBUG(("Notifying SKE %p owner of failure (failure_notified = %d)",
ske, ske->failure_notified));
/*
{
SilcTaskFd ftask;
fprintf(stdout, "Schedule %p statistics:\n\n", schedule);
- fprintf(stdout, "Num FD tasks : %lu (%lu bytes allocated)\n",
+ fprintf(stdout, "Num FD tasks : %u (%u bytes allocated)\n",
silc_hash_table_count(schedule->fd_queue),
sizeof(*ftask) * silc_hash_table_count(schedule->fd_queue));
fprintf(stdout, "Num Timeout tasks : %d (%d bytes allocated)\n",
if (!internal)
return TRUE;
- SILC_LOG_DEBUG(("Scheduling fd %lu, mask %x", task->fd, event_mask));
+ SILC_LOG_DEBUG(("Scheduling fd %u, mask %x", task->fd, event_mask));
memset(&event, 0, sizeof(event));
if (event_mask & SILC_TASK_READ)