]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2320] Small tweak inhwaddr.c implemented.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 2 Jan 2013 16:45:56 +0000 (17:45 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 2 Jan 2013 16:45:56 +0000 (17:45 +0100)
src/lib/dhcp/hwaddr.cc

index 10f0ac388ea39f70cad05fcf90a8e62660a6c9fe..d19f2adbf065d6c8739b2a70a522e72ac014506c 100644 (file)
@@ -35,7 +35,7 @@ HWAddr::HWAddr(const std::vector<uint8_t>& hwaddr, uint8_t htype)
 
 std::string HWAddr::toText() const {
     std::stringstream tmp;
-    tmp << "type=" << htype_ << " ";
+    tmp << "hwtype=" << static_cast<int>(htype_) << " ";
     tmp << std::hex;
     bool delim = false;
     for (std::vector<uint8_t>::const_iterator it = hwaddr_.begin();