]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
printing: Fix Coverity ID 1508942 Use of 32-bit time_t
authorVolker Lendecke <vl@samba.org>
Thu, 21 Nov 2024 14:03:51 +0000 (15:03 +0100)
committerMartin Schwenke <martins@samba.org>
Mon, 2 Dec 2024 04:53:33 +0000 (04:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/printing/printing.c

index 8fa623f0ee2b073d04796297d635065a882303ad..48d221de127b65be72ac2a5445700aa8575b3fdf 100644 (file)
@@ -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