From: Ben Pfaff Date: Mon, 23 Feb 2015 00:36:07 +0000 (-0800) Subject: lldp: Use ETH_ADDR_FMT. X-Git-Tag: v2.4.0~514 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=6db3f8b065dd528469884ea93eae7f120602a077;p=cascardo%2Fovs.git lldp: Use ETH_ADDR_FMT. Signed-off-by: Ben Pfaff --- diff --git a/lib/lldp/lldp.c b/lib/lldp/lldp.c index 33384b701..d77bcd082 100644 --- a/lib/lldp/lldp.c +++ b/lib/lldp/lldp.c @@ -517,13 +517,8 @@ lldp_decode(struct lldpd *cfg OVS_UNUSED, char *frame, int s, port->p_element.mgmt_vlan); PEEK_BYTES(&port->p_element.system_id.system_mac, sizeof port->p_element.system_id.system_mac); - VLOG_INFO("System mac: 0x%.2X%.2X%.2X%.2X%.2X%.2X", - port->p_element.system_id.system_mac[0], - port->p_element.system_id.system_mac[1], - port->p_element.system_id.system_mac[2], - port->p_element.system_id.system_mac[3], - port->p_element.system_id.system_mac[4], - port->p_element.system_id.system_mac[5]); + VLOG_INFO("System mac: "ETH_ADDR_FMT, + ETH_ADDR_ARGS(port->p_element.system_id.system_mac)); aa_system_id_word = PEEK_UINT16; port->p_element.system_id.conn_type = aa_system_id_word >> 12;