scsi: ufs: remove "errors" word in ufshcd_print_err_hist()
authorStanley Chu <stanley.chu@mediatek.com>
Sat, 4 Jan 2020 14:26:08 +0000 (22:26 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 16 Jan 2020 02:59:44 +0000 (21:59 -0500)
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@samsung.com>
Cc: Asutosh Das <asutoshd@codeaurora.org>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Bean Huo <beanhuo@micron.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/1578147968-30938-4-git-send-email-stanley.chu@mediatek.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c

index 29e3d50aabfb380c9a63de2a3c88513c370918cf..d847426507e72bff8472cbb9125be08be22504c9 100644 (file)
@@ -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)