diff options
author | Chris Leech <christopher.leech@intel.com> | 2010-04-09 17:23:16 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 15:02:42 -0400 |
commit | 9f8f3aa640ae5da220eea95215317f19ace91481 (patch) | |
tree | ef2d97aee5de5f83e53fe2645a7a30aa8a3980c7 /drivers/scsi/libfc | |
parent | ce8b5df04292e93a117d9f863af206245bf61271 (diff) |
[SCSI] libfc, fcoe: normalize format specifies for world wide names
Print all world wide node names (node, port and fabric) with the same
format specifier of "%16.16llx". That makes sure they all print as a
16 character hex string, with lower case letters, no 0x prefix, and
without stripping off any leading 0s.
Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r-- | drivers/scsi/libfc/fc_disc.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libfc/fc_lport.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 83314a18db2b..b292272d296f 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c | |||
@@ -607,7 +607,7 @@ static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
607 | rdata->ids.port_name = port_name; | 607 | rdata->ids.port_name = port_name; |
608 | else if (rdata->ids.port_name != port_name) { | 608 | else if (rdata->ids.port_name != port_name) { |
609 | FC_DISC_DBG(disc, "GPN_ID accepted. WWPN changed. " | 609 | FC_DISC_DBG(disc, "GPN_ID accepted. WWPN changed. " |
610 | "Port-id %6.6x wwpn %llx\n", | 610 | "Port-id %6.6x wwpn %16.16llx\n", |
611 | rdata->ids.port_id, port_name); | 611 | rdata->ids.port_id, port_name); |
612 | lport->tt.rport_logoff(rdata); | 612 | lport->tt.rport_logoff(rdata); |
613 | 613 | ||
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index e89bdd53acf0..ef25e11abd33 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c | |||
@@ -800,11 +800,11 @@ static void fc_lport_recv_flogi_req(struct fc_seq *sp_in, | |||
800 | remote_wwpn = get_unaligned_be64(&flp->fl_wwpn); | 800 | remote_wwpn = get_unaligned_be64(&flp->fl_wwpn); |
801 | if (remote_wwpn == lport->wwpn) { | 801 | if (remote_wwpn == lport->wwpn) { |
802 | printk(KERN_WARNING "host%d: libfc: Received FLOGI from port " | 802 | printk(KERN_WARNING "host%d: libfc: Received FLOGI from port " |
803 | "with same WWPN %llx\n", | 803 | "with same WWPN %16.16llx\n", |
804 | lport->host->host_no, remote_wwpn); | 804 | lport->host->host_no, remote_wwpn); |
805 | goto out; | 805 | goto out; |
806 | } | 806 | } |
807 | FC_LPORT_DBG(lport, "FLOGI from port WWPN %llx\n", remote_wwpn); | 807 | FC_LPORT_DBG(lport, "FLOGI from port WWPN %16.16llx\n", remote_wwpn); |
808 | 808 | ||
809 | /* | 809 | /* |
810 | * XXX what is the right thing to do for FIDs? | 810 | * XXX what is the right thing to do for FIDs? |