about summary refs log tree commit diff
path: root/absl/base
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2018-03-30T20·35-0700
committerAshley Hedberg <ahedberg@google.com>2018-04-02T13·36-0400
commit7b3c38a0628b9201ce92a6893b96890b64e5daa8 (patch)
tree1fb679ac6703fe8c3f5e4cf6c03ebc34adcf84d0 /absl/base
parentd9b47d7888b39cd113bacacb9edd5023a71cbb3a (diff)
- f1b5ee8ff389dead0ba5671ad564a46aa1e8d216 Using %d with a uint32_t appears to work on some compiler... by Abseil Team <absl-team@google.com>
  - f8fabe263281d0f57692b1e72014c34dc8a85340 Internal change. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: f1b5ee8ff389dead0ba5671ad564a46aa1e8d216
Change-Id: I207dfc6ba2cd55653652e6bfc9d3699a9e114c1d
Diffstat (limited to 'absl/base')
-rw-r--r--absl/base/BUILD.bazel4
-rw-r--r--absl/base/call_once.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel
index 9bb7bfa14efb..ac6ffc4117ff 100644
--- a/absl/base/BUILD.bazel
+++ b/absl/base/BUILD.bazel
@@ -216,7 +216,9 @@ cc_library(
     testonly = 1,
     hdrs = ["internal/exception_testing.h"],
     copts = ABSL_TEST_COPTS,
-    visibility = ["//absl:__subpackages__"],
+    visibility = [
+        "//absl:__subpackages__",
+    ],
     deps = [
         ":config",
         "@com_google_googletest//:gtest",
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