about summary refs log tree commit diff
path: root/absl/base/call_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/base/call_once.h')
-rw-r--r--absl/base/call_once.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/base/call_once.h b/absl/base/call_once.h
index b5fbeae5858c..fa2a536081a6 100644
--- a/absl/base/call_once.h
+++ b/absl/base/call_once.h
@@ -152,10 +152,10 @@ void CallOnceImpl(std::atomic<uint32_t>* control,
         old_control != kOnceDone) {
       ABSL_RAW_LOG(
           FATAL,
-          "Unexpected value for control word: %d. Either the control word "
+          "Unexpected value for control word: %x. Either the control word "
           "has non-static storage duration (where GoogleOnceDynamic might "
           "be appropriate), or there's been a memory corruption.",
-          old_control);
+          static_cast<unsigned>(old_control));
     }
   }
 #endif  // NDEBUG