This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new f62ea40cd5 Coverity: Fix for CID-1534640 - Use of 32-bit time_t 
(#11804)
f62ea40cd5 is described below

commit f62ea40cd5552c58c4d3939ce839e18934b3c3d4
Author: Damian Meden <[email protected]>
AuthorDate: Thu Oct 3 10:53:45 2024 +0200

    Coverity: Fix for CID-1534640 - Use of 32-bit time_t (#11804)
---
 plugins/experimental/stale_response/stale_response.cc | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/plugins/experimental/stale_response/stale_response.cc 
b/plugins/experimental/stale_response/stale_response.cc
index f71425a9bd..e886a2e3c1 100644
--- a/plugins/experimental/stale_response/stale_response.cc
+++ b/plugins/experimental/stale_response/stale_response.cc
@@ -957,12 +957,14 @@ parse_args(int argc, char const *argv[])
     TSTextLogObjectCreate(plugin_config->log_info.filename, 
TS_LOG_MODE_ADD_TIMESTAMP, &(plugin_config->log_info.object));
   }
 
-  TSDebug(PLUGIN_TAG, "[%s] global stale if error override = %d", 
__FUNCTION__, (int)plugin_config->stale_if_error_override);
-  TSDebug(PLUGIN_TAG, "[%s] global stale while revalidate override = %d", 
__FUNCTION__,
-          (int)plugin_config->stale_while_revalidate_override);
-  TSDebug(PLUGIN_TAG, "[%s] global stale if error default = %d", __FUNCTION__, 
(int)plugin_config->stale_if_error_default);
-  TSDebug(PLUGIN_TAG, "[%s] global stale while revalidate default = %d", 
__FUNCTION__,
-          (int)plugin_config->stale_while_revalidate_default);
+  TSDebug(PLUGIN_TAG, "[%s] global stale if error override = %" PRIdMAX, 
__FUNCTION__,
+          static_cast<intmax_t>(plugin_config->stale_if_error_override));
+  TSDebug(PLUGIN_TAG, "[%s] global stale while revalidate override = %" 
PRIdMAX, __FUNCTION__,
+          
static_cast<intmax_t>(plugin_config->stale_while_revalidate_override));
+  TSDebug(PLUGIN_TAG, "[%s] global stale if error default = %" PRIdMAX, 
__FUNCTION__,
+          static_cast<intmax_t>(plugin_config->stale_if_error_default));
+  TSDebug(PLUGIN_TAG, "[%s] global stale while revalidate default = %" 
PRIdMAX, __FUNCTION__,
+          
static_cast<intmax_t>(plugin_config->stale_while_revalidate_default));
   TSDebug(PLUGIN_TAG, "[%s] global intercept reroute = %d", __FUNCTION__, 
(int)plugin_config->intercept_reroute);
   TSDebug(PLUGIN_TAG, "[%s] global force parallel async = %d", __FUNCTION__, 
(int)plugin_config->force_parallel_async);
   TSDebug(PLUGIN_TAG, "[%s] global max memory usage = %" PRId64, __FUNCTION__, 
plugin_config->max_body_data_memory_usage);

Reply via email to