[PATCH v1 3/3] scsi: ufs: remove "errors" word in ufshcd_print_err_hist()

Stanley Chu stanley.chu at mediatek.com
Sat Jan 4 06:26:08 PST 2020

Remove "errors" word in output string by ufshcd_print_err_hist()
since not all printed targets are "errors". Sometimes they are
just "events".

In addition, all events which can be treated as "errors" already
have "err" or "fail" words in their names.

Cc: Alim Akhtar <alim.akhtar at samsung.com>
Cc: Asutosh Das <asutoshd at codeaurora.org>
Cc: Avri Altman <avri.altman at wdc.com>
Cc: Bart Van Assche <bvanassche at acm.org>
Cc: Bean Huo <beanhuo at micron.com>
Cc: Can Guo <cang at codeaurora.org>
Cc: Matthias Brugger <matthias.bgg at gmail.com>
Signed-off-by: Stanley Chu <stanley.chu at mediatek.com>
 drivers/scsi/ufs/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 29e3d50aabfb..d847426507e7 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -393,7 +393,7 @@ static void ufshcd_print_err_hist(struct ufs_hba *hba,
 	if (!found)
-		dev_err(hba->dev, "No record of %s errors\n", err_name);
+		dev_err(hba->dev, "No record of %s\n", err_name);
 static void ufshcd_print_host_regs(struct ufs_hba *hba)

More information about the linux-arm-kernel mailing list