Skip to content

Commit 4a9a7c8

Browse files
wkk-ssmartinkpetersen
authored andcommitted
scsi: ufs: core: Print error value as hex format in ufshcd_err_handler()
It is better to print saved_err and saved_uic_err in hex format. Integer format is hard to decode. [ 1024.485428] [2: kworker/u20:13:28211] exynos-ufs 17100000.ufs: ufshcd_err_handler started; HBA state eh_fatal; powered 1; shutting down 0; saved_err = 131072; saved_uic_err = 0; force_reset = 0; link is broken Signed-off-by: Wonkon Kim <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent cd6856d commit 4a9a7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6584,7 +6584,7 @@ static void ufshcd_err_handler(struct work_struct *work)
65846584
hba = container_of(work, struct ufs_hba, eh_work);
65856585

65866586
dev_info(hba->dev,
6587-
"%s started; HBA state %s; powered %d; shutting down %d; saved_err = %d; saved_uic_err = %d; force_reset = %d%s\n",
6587+
"%s started; HBA state %s; powered %d; shutting down %d; saved_err = 0x%x; saved_uic_err = 0x%x; force_reset = %d%s\n",
65886588
__func__, ufshcd_state_name[hba->ufshcd_state],
65896589
hba->is_powered, hba->shutting_down, hba->saved_err,
65906590
hba->saved_uic_err, hba->force_reset,

0 commit comments

Comments
 (0)