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

cmcfarlen 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 9d510cd823 Use %p to print memory address in hex in ConfigProcessor 
debug log (#12119) (#12131)
9d510cd823 is described below

commit 9d510cd8233ab32a35fcd64cf6bc91c9ea7e2aa7
Author: Hiroaki Nakamura <[email protected]>
AuthorDate: Fri Mar 28 08:50:36 2025 +0900

    Use %p to print memory address in hex in ConfigProcessor debug log (#12119) 
(#12131)
    
    * Use %p to print memory address in hex in ConfigProcessor debug log
    
    * Also use %p to print memory address in hex in another debug log in 
ConfigProcessor
---
 src/iocore/eventsystem/ConfigProcessor.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/iocore/eventsystem/ConfigProcessor.cc 
b/src/iocore/eventsystem/ConfigProcessor.cc
index 603d2272d2..028968ba51 100644
--- a/src/iocore/eventsystem/ConfigProcessor.cc
+++ b/src/iocore/eventsystem/ConfigProcessor.cc
@@ -88,8 +88,7 @@ ConfigProcessor::set(unsigned int id, ConfigInfo *info, 
unsigned timeout_secs)
   idx      = id - 1;
   old_info = infos[idx].exchange(info);
 
-  Dbg(dbg_ctl_config, "Set for slot %d 0x%" PRId64 " was 0x%" PRId64 " with 
ref count %d", id, (int64_t)info, (int64_t)old_info,
-      (old_info) ? old_info->refcount() : 0);
+  Dbg(dbg_ctl_config, "Set for slot %d %p was %p with ref count %d", id, info, 
old_info, old_info ? old_info->refcount() : 0);
 
   if (old_info) {
     // The ConfigInfoReleaser now takes our refcount, but
@@ -139,7 +138,7 @@ ConfigProcessor::release(unsigned int id, ConfigInfo *info)
 
   if (info && info->refcount_dec() == 0) {
     // When we release, we should already have replaced this object in the 
index.
-    Dbg(dbg_ctl_config, "Release config %d 0x%" PRId64, id, (int64_t)info);
+    Dbg(dbg_ctl_config, "Release config %d %p", id, info);
     ink_release_assert(info != this->infos[idx]);
     delete info;
   }

Reply via email to