Skip to contentSkip to conversation

fcoe: convert to %pM

PATCH In review Johannes Berg 2 participants 2 messages Jul 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fcoe: convert to %pM

print_mac is being deprecated, and %pM makes for smaller code anyway.

---
 drivers/scsi/fcoe/libfcoe.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/fcoe/libfcoe.c +2 -4
@@ -1104,7 +1104,6 @@ static void fcoe_ctlr_timeout(unsigned l
 	struct fcoe_fcf *sel;
 	struct fcoe_fcf *fcf;
 	unsigned long next_timer = jiffies + msecs_to_jiffies(FIP_VN_KA_PERIOD);
-	DECLARE_MAC_BUF(buf);
 	u8 send_ctlr_ka;
 	u8 send_port_ka;
 
@@ -1128,9 +1127,8 @@ static void fcoe_ctlr_timeout(unsigned l
 		fcf = sel;		/* the old FCF may have been freed */
 		if (sel) {
 			printk(KERN_INFO "libfcoe: host%d: FIP selected "
-			       "Fibre-Channel Forwarder MAC %s\n",
-			       fip->lp->host->host_no,
-			       print_mac(buf, sel->fcf_mac));
+			       "Fibre-Channel Forwarder MAC %pM\n",
+			       fip->lp->host->host_no, sel->fcf_mac);
 			memcpy(fip->dest_addr, sel->fcf_mac, ETH_ALEN);
 			fip->port_ka_time = jiffies +
 					    msecs_to_jiffies(FIP_VN_KA_PERIOD);
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Johannes Berg

print_mac is being deprecated, and %pM makes for smaller code anyway.

Thanks Johannes.

Quoted 28 lines
---
 drivers/scsi/fcoe/libfcoe.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/fcoe/libfcoe.c +2 -4
@@ -1104,7 +1104,6 @@ static void fcoe_ctlr_timeout(unsigned l
 	struct fcoe_fcf *sel;
 	struct fcoe_fcf *fcf;
 	unsigned long next_timer = jiffies + msecs_to_jiffies(FIP_VN_KA_PERIOD);
-	DECLARE_MAC_BUF(buf);
 	u8 send_ctlr_ka;
 	u8 send_port_ka;
 
@@ -1128,9 +1127,8 @@ static void fcoe_ctlr_timeout(unsigned l
 		fcf = sel;		/* the old FCF may have been freed */
 		if (sel) {
 			printk(KERN_INFO "libfcoe: host%d: FIP selected "
-			       "Fibre-Channel Forwarder MAC %s\n",
-			       fip->lp->host->host_no,
-			       print_mac(buf, sel->fcf_mac));
+			       "Fibre-Channel Forwarder MAC %pM\n",
+			       fip->lp->host->host_no, sel->fcf_mac);
 			memcpy(fip->dest_addr, sel->fcf_mac, ETH_ALEN);
 			fip->port_ka_time = jiffies +
 					    msecs_to_jiffies(FIP_VN_KA_PERIOD);