public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fcoe: convert to %pM
@ 2009-07-15 15:21 Johannes Berg
  2009-07-15 22:06 ` Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2009-07-15 15:21 UTC (permalink / raw)
  To: linux-scsi; +Cc: James Bottomley, Robert Love, Chris Leech

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

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 drivers/scsi/fcoe/libfcoe.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- wireless-testing.orig/drivers/scsi/fcoe/libfcoe.c	2009-07-15 17:12:02.000000000 +0200
+++ wireless-testing/drivers/scsi/fcoe/libfcoe.c	2009-07-15 17:12:17.000000000 +0200
@@ -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);



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-15 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 15:21 [PATCH] fcoe: convert to %pM Johannes Berg
2009-07-15 22:06 ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox