summaryrefslogtreecommitdiff
path: root/drivers/scsi/libsas/sas_phy.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-04-12 11:57:57 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-16 01:55:01 +0300
commit3c236f8cc63b4593c9627bf0149f416925db8899 (patch)
tree4f4f9f5a2ae5f20a3ac436978d656df3b501426f /drivers/scsi/libsas/sas_phy.c
parentd8649fc1c5e40e691d589ed825998c36a947491c (diff)
downloadlinux-3c236f8cc63b4593c9627bf0149f416925db8899.tar.xz
scsi: libsas: Print expander PHY indexes in decimal
Currently we print expander PHY indexes in a mix of decimal and hex. It is more consistent and also more convenient to read decimal, so make this change. We use width of 2 for expander and 1 for root PHYs prints. Some lines which were needlessly spilling multiple lines are unified. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas/sas_phy.c')
-rw-r--r--drivers/scsi/libsas/sas_phy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/libsas/sas_phy.c b/drivers/scsi/libsas/sas_phy.c
index 0374243c85d0..e030e1452136 100644
--- a/drivers/scsi/libsas/sas_phy.c
+++ b/drivers/scsi/libsas/sas_phy.c
@@ -122,11 +122,10 @@ static void sas_phye_shutdown(struct work_struct *work)
phy->enabled = 0;
ret = i->dft->lldd_control_phy(phy, PHY_FUNC_DISABLE, NULL);
if (ret)
- pr_notice("lldd disable phy%02d returned %d\n",
- phy->id, ret);
+ pr_notice("lldd disable phy%d returned %d\n", phy->id,
+ ret);
} else
- pr_notice("phy%02d is not enabled, cannot shutdown\n",
- phy->id);
+ pr_notice("phy%d is not enabled, cannot shutdown\n", phy->id);
}
/* ---------- Phy class registration ---------- */