ufs: core: Print error value as hex format on ufshcd_err_handler()
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CGME20250507020722epcas1p1171c5e96ef474d587a1a35af8d6931bf@epcas1p1.samsung.com
PATCH 1/1 ufs: core: Print error value as hex format on ufshcd_err_handler()
It is better to print saved_err and saved_uic_err in hex format. Integer format is hard to spot.
[ 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]>
--- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ufs/core/ufshcd.c +1 -1
@@ -6572,7 +6572,7 @@ static void ufshcd_err_handler(struct work_struct *work) hba = container_of(work, struct ufs_hba, eh_work); dev_info(hba->dev, - "%s started; HBA state %s; powered %d; shutting down %d; saved_err = %d; saved_uic_err = %d; force_reset = %d%s\n", + "%s started; HBA state %s; powered %d; shutting down %d; saved_err = 0x%x; saved_uic_err = 0x%x; force_reset = %d%s\n", __func__, ufshcd_state_name[hba->ufshcd_state], hba->is_powered, hba->shutting_down, hba->saved_err, hba->saved_uic_err, hba->force_reset,
Signature · 1 line
2.34.1
Quoted 2 lines · wkon-kim
It is better to print
saved_errandsaved_uic_errin hex format. Integer format is hard to spot.
spot -> decode
Anyway:
Reviewed-by Bart Van Assche <[email protected]>
Quoted 9 lines · wkon-kim
Quoted 2 lines
It is better to print
saved_errandsaved_uic_errin hex format. Integer format is hard to spot.spot -> decode
Anyway:
Reviewed-by Bart Van Assche <[email protected]>
Okay, I'll modify it.
Thank you.
Wonkon Kim