aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_phy.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2018-11-15 18:20:30 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2018-11-15 14:37:06 -0500
commit71a4a9923122091be1167bac9379d5d1cfdb1153 (patch)
tree209207f0ad11688a42ff080104a0dd4683a9fe75 /drivers/scsi/libsas/sas_phy.c
parentscsi: libsas: Use pr_fmt(fmt) (diff)
downloadlinux-dev-71a4a9923122091be1167bac9379d5d1cfdb1153.tar.xz
linux-dev-71a4a9923122091be1167bac9379d5d1cfdb1153.zip
scsi: libsas: Drop sas_printk()
The printk wrapper sas_printk() adds little value now that libsas logs already have the "sas" prefix through pr_fmt(fmt), so just use pr_notice() directly. In addition, strings which span multiple lines are reunited. Originally-from: Joe Perches <joe@perches.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/libsas/sas_phy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/libsas/sas_phy.c b/drivers/scsi/libsas/sas_phy.c
index bf3e1b979ca6..0374243c85d0 100644
--- a/drivers/scsi/libsas/sas_phy.c
+++ b/drivers/scsi/libsas/sas_phy.c
@@ -122,11 +122,11 @@ 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)
- sas_printk("lldd disable phy%02d returned %d\n",
- phy->id, ret);
+ pr_notice("lldd disable phy%02d returned %d\n",
+ phy->id, ret);
} else
- sas_printk("phy%02d is not enabled, cannot shutdown\n",
- phy->id);
+ pr_notice("phy%02d is not enabled, cannot shutdown\n",
+ phy->id);
}
/* ---------- Phy class registration ---------- */