You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2023/02/15 16:14:48 UTC

[trafficserver] branch master updated: Fixes the compile to work with LLVM15 (#9410)

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

zwoop 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 496adcfec2 Fixes the compile to work with LLVM15 (#9410)
496adcfec2 is described below

commit 496adcfec26592ba0851dec4a51c85be447cef22
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Wed Feb 15 09:14:39 2023 -0700

    Fixes the compile to work with LLVM15 (#9410)
---
 iocore/eventsystem/UnixEventProcessor.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
index 200ef71d34..a2e7ce2f99 100644
--- a/iocore/eventsystem/UnixEventProcessor.cc
+++ b/iocore/eventsystem/UnixEventProcessor.cc
@@ -522,15 +522,15 @@ EventProcessor::start(int n_event_threads, size_t stacksize)
 
   // Event loop timings.
   for (Graph::raw_type id = 0; id < Graph::N_BUCKETS; ++id) {
-    snprintf(name, sizeof(name), "%s%" PRIu64 "ms", EThread::Metrics::LOOP_HISTOGRAM_STAT_STEM.data(),
-             EThread::Metrics::LOOP_HISTOGRAM_BUCKET_SIZE.count() * Graph::lower_bound(id));
+    snprintf(name, sizeof(name), "%s%zums", EThread::Metrics::LOOP_HISTOGRAM_STAT_STEM.data(),
+             static_cast<size_t>(EThread::Metrics::LOOP_HISTOGRAM_BUCKET_SIZE.count() * Graph::lower_bound(id)));
     RecRegisterRawStat(rsb, RECT_PROCESS, name, RECD_INT, RECP_NON_PERSISTENT, stat_idx++, NULL);
   }
 
   // plugin API timings
   for (Graph::raw_type id = 0; id < Graph::N_BUCKETS; ++id) {
-    snprintf(name, sizeof(name), "%s%" PRIu64 "ms", EThread::Metrics::API_HISTOGRAM_STAT_STEM.data(),
-             EThread::Metrics::API_HISTOGRAM_BUCKET_SIZE.count() * Graph::lower_bound(id));
+    snprintf(name, sizeof(name), "%s%zums", EThread::Metrics::API_HISTOGRAM_STAT_STEM.data(),
+             static_cast<size_t>(EThread::Metrics::API_HISTOGRAM_BUCKET_SIZE.count() * Graph::lower_bound(id)));
     RecRegisterRawStat(rsb, RECT_PROCESS, name, RECD_INT, RECP_NON_PERSISTENT, stat_idx++, NULL);
   }