diff --git a/daemon/codec.c b/daemon/codec.c index cd944860c..b4aaf25ec 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -3373,7 +3373,7 @@ static void __dtx_send_later(struct codec_timer *ct) { dtxb->head_ts, ts, ts_diff_us); else if (ts_diff >= dtxb->tspp * 2) { ilogs(dtx, LOG_DEBUG, "First packet in DTX buffer not ready yet (packet TS %lu, " - "DTX TS %lu, diff %li)", + "DTX TS %lu, diff %ld)", ts, dtxb->head_ts, ts_diff); dtxp = NULL; } diff --git a/recording-daemon/notify.c b/recording-daemon/notify.c index d277d966e..3c1e8cad9 100644 --- a/recording-daemon/notify.c +++ b/recording-daemon/notify.c @@ -212,7 +212,7 @@ static void *notify_timer(void *p) { gettimeofday(&now, NULL); if (now.tv_sec < first->retry_time) { ilog(LOG_DEBUG, "Sleeping until next scheduled HTTP notification retry in %lu seconds", - (unsigned long) first->retry_time - now.tv_sec); + (unsigned long) (first->retry_time - now.tv_sec)); struct timespec ts = {.tv_sec = first->retry_time, .tv_nsec = 0}; pthread_cond_timedwait(&timer_cond, &timer_lock, &ts); continue;