aboutsummaryrefslogtreecommitdiff
path: root/ResolverController.cpp
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-02-24 17:40:05 -0800
committerMaciej Żenczykowski <maze@google.com>2021-02-24 18:08:54 -0800
commite92297241f47eabb97b99e8be194172a17a9410a (patch)
tree53c094e22aefc5f7a48ae2138864e1383ce6a639 /ResolverController.cpp
parentfd4ac10ea84d53689ce02dcf154b68163a75c307 (diff)
ResolverController - fix NAT64 prefix logging a 'char' instead of an int.
Currently we have: D ResolverController: Sending Nat64Prefix added event on netId 100 with address {64:ff9b::(`)} This is because: struct Nat64PrefixInfo { unsigned netId; bool added; std::string prefixString; uint8_t prefixLength; }; and thus the uint8_t is simply treated as a char(acter). Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I2a5e1ed7a1d3072c7338b1a1288540682b5514d6
Diffstat (limited to 'ResolverController.cpp')
-rw-r--r--ResolverController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ResolverController.cpp b/ResolverController.cpp
index b193af11..968a8412 100644
--- a/ResolverController.cpp
+++ b/ResolverController.cpp
@@ -48,8 +48,8 @@ namespace {
void sendNat64PrefixEvent(const Dns64Configuration::Nat64PrefixInfo& args) {
LOG(DEBUG) << "Sending Nat64Prefix " << (args.added ? "added" : "removed") << " event on netId "
- << args.netId << " with address {" << args.prefixString << "(" << args.prefixLength
- << ")}";
+ << args.netId << " with address {" << args.prefixString << "("
+ << (int)(args.prefixLength) << ")}";
// Send a nat64 prefix event to NetdEventListenerService.
const auto& listeners = ResolverEventReporter::getInstance().getListeners();
if (listeners.empty()) {