Skip to content
Snippets Groups Projects
Commit 22a704be authored by Gregor Maier's avatar Gregor Maier
Browse files

Entity.toString: fix mac address string length

parent 6cd8ec2e
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ public class Entity implements Comparable<Entity> {
@Override
public String toString() {
return "Entity [macAddress=" + HexString.toHexString(macAddress)
return "Entity [macAddress=" + HexString.toHexString(macAddress, 6)
+ ", ipv4Address="
+ IPv4.fromIPv4Address(ipv4Address==null ? 0 : ipv4Address.intValue()) + ", vlan=" + vlan + ", switchDPID="
+ switchDPID + ", switchPort=" + switchPort + "]";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment