OpenCloudOS-Kernel/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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
Makefile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
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 scsi: libsas: switch remaining files to SPDX tags 2019-05-21 06:16:22 -04:00
sas_expander.c scsi: libsas: Tidy SAS address print format 2019-12-21 13:42:42 -05:00
sas_host_smp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 372 2019-06-05 17:37:10 +02:00
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