[SCSI] libfc: set both precision and field with when printing FC IDs
authorChris Leech <christopher.leech@intel.com>
Fri, 9 Apr 2010 21:23:10 +0000 (14:23 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 19:02:41 +0000 (14:02 -0500)
commitce8b5df04292e93a117d9f863af206245bf61271
treefb10dd4b931756765b3352402d83033a326b9c30
parent63ac4bbffb40f2cb3bc7e8b11bac47598813ea13
[SCSI] libfc: set both precision and field with when printing FC IDs

Most of the prints of fabric IDs were specified as %6x, which will not
print any leading 0s.  It's nice to see leading 0s for identifiers
like this, which are a fixed length.  This patch sets the precision
modifier as well, making the specifier %6.6x, which forces the
printing of 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>
drivers/scsi/libfc/fc_disc.c
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_libfc.h
drivers/scsi/libfc/fc_lport.c