From df508b44f6b067aa853940c997664a7fdd6d5a8a Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Mon, 6 Apr 2009 11:12:42 +0200 Subject: [PATCH] Fix bug 529 (logged values in hex after using Ipv6Address::Print). --- src/node/ipv6-address.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/ipv6-address.cc b/src/node/ipv6-address.cc index adab50e86..ef99226df 100644 --- a/src/node/ipv6-address.cc +++ b/src/node/ipv6-address.cc @@ -338,7 +338,8 @@ void Ipv6Address::Print (std::ostream& os) const << std::hex << std::setw(2) << std::setfill('0') << (unsigned int) m_address[12] << std::hex << std::setw(2) << std::setfill('0') << (unsigned int) m_address[13] << ":" << std::hex << std::setw(2) << std::setfill('0') << (unsigned int) m_address[14] - << std::hex << std::setw(2) << std::setfill('0') << (unsigned int) m_address[15]; + << std::hex << std::setw(2) << std::setfill('0') << (unsigned int) m_address[15] + << std::dec << std::setfill(' '); } bool Ipv6Address::IsLocalhost () const