Browse Source

[2320] Small tweak inhwaddr.c implemented.

Tomek Mrugalski 12 years ago
parent
commit
1deefe2736
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/hwaddr.cc

+ 1 - 1
src/lib/dhcp/hwaddr.cc

@@ -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();