linux-stable/drivers/scsi/libsas
John Garry b3e3d4c618 scsi: libsas: Tidy SAS address print format
Currently we use a mixture of %016llx, %llx, and %16llx when printing a SAS
address.

Since the most significant nibble of the SAS address is always 5 - as per
standard - this formatting is not so important; but some fake SAS addresses
for SATA devices may not be. And we have mangled/invalid address to
consider also. And it's better to be consistent in the code, so use a fixed
format.

The SAS address is a fixed size at 64b, so we want to 0 byte extend to 16
nibbles, so use %016llx globally.

Also make some prints to be explicitly hex, and tidy some whitespace issue.

Link: https://lore.kernel.org/r/1576758957-227350-1-git-send-email-john.garry@huawei.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-12-21 13:42:42 -05:00
..
Kconfig
Makefile
sas_ata.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_discover.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_event.c
sas_expander.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_host_smp.c
sas_init.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_internal.h scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_phy.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_port.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_scsi_host.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_task.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00