From: Volker Lendecke Date: Thu, 21 Nov 2024 14:03:51 +0000 (+0100) Subject: printing: Fix Coverity ID 1508942 Use of 32-bit time_t X-Git-Tag: tdb-1.4.13~442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=421cab80d891d55840e7f1b5bb3503a6ee663d79;p=thirdparty%2Fsamba.git printing: Fix Coverity ID 1508942 Use of 32-bit time_t Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 8fa623f0ee2..48d221de127 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1231,10 +1231,13 @@ static bool print_cache_expired(const char *sharename, bool check_pending) uint32_t u; time_t msg_pending_time; - DEBUG(4, ("print_cache_expired: cache expired for queue %s " - "(last_qscan_time = %d, time now = %d, qcachetime = %d)\n", - sharename, (int)last_qscan_time, (int)time_now, - (int)lp_lpq_cache_time() )); + DBG_INFO("cache expired for queue %s " + "(last_qscan_time = %" PRIu64 ", time now = %" PRIu64 + ", qcachetime = %d)\n", + sharename, + (uint64_t)last_qscan_time, + (uint64_t)time_now, + lp_lpq_cache_time()); /* check if another smbd has already sent a message to update the queue. Give the pending message one minute to clear and