* [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() [not found] <CGME20250507020722epcas1p1171c5e96ef474d587a1a35af8d6931bf@epcas1p1.samsung.com> @ 2025-05-07 2:07 ` wkon-kim 2025-05-07 19:28 ` Bart Van Assche 0 siblings, 1 reply; 6+ messages in thread From: wkon-kim @ 2025-05-07 2:07 UTC (permalink / raw) To: James.Bottomley, martin.petersen, linux-scsi, linux-kernel; +Cc: wkon.kim 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 <wkon.kim@samsung.com> --- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 5cb6132b8147..eb0ce35a7a9c 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -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, -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() 2025-05-07 2:07 ` [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() wkon-kim @ 2025-05-07 19:28 ` Bart Van Assche 2025-05-12 2:32 ` 김원곤/System Device개발그룹(무선)/Engineer/삼성전자 0 siblings, 1 reply; 6+ messages in thread From: Bart Van Assche @ 2025-05-07 19:28 UTC (permalink / raw) To: wkon-kim, James.Bottomley, martin.petersen, linux-scsi, linux-kernel On 5/6/25 7:07 PM, wkon-kim wrote: > It is better to print saved_err and saved_uic_err in hex format. > Integer format is hard to spot. spot -> decode Anyway: Reviewed-by: Bart Van Assche <bvanassche@acm.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() 2025-05-07 19:28 ` Bart Van Assche @ 2025-05-12 2:32 ` 김원곤/System Device개발그룹(무선)/Engineer/삼성전자 0 siblings, 0 replies; 6+ messages in thread From: 김원곤/System Device개발그룹(무선)/Engineer/삼성전자 @ 2025-05-12 2:32 UTC (permalink / raw) To: 'Bart Van Assche', James.Bottomley, martin.petersen, linux-scsi, linux-kernel > On 5/6/25 7:07 PM, wkon-kim wrote: > > It is better to print saved_err and saved_uic_err in hex format. > > Integer format is hard to spot. > > spot -> decode > > Anyway: > > Reviewed-by: Bart Van Assche <bvanassche@acm.org> Okay, I'll modify it. Thank you. Wonkon Kim ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20250512025214epcas1p273986e3b3bb3451e4039094d21611e86@epcas1p2.samsung.com>]
* [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() [not found] <CGME20250512025214epcas1p273986e3b3bb3451e4039094d21611e86@epcas1p2.samsung.com> @ 2025-05-12 2:52 ` Wonkon Kim 2025-05-12 22:20 ` Bart Van Assche 2025-05-13 2:22 ` Martin K. Petersen 0 siblings, 2 replies; 6+ messages in thread From: Wonkon Kim @ 2025-05-12 2:52 UTC (permalink / raw) To: bvanassche, James.Bottomley, martin.petersen, linux-scsi, linux-kernel Cc: wkon.kim From: wkon-kim <wkon.kim@samsung.com> 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 <wkon.kim@samsung.com> --- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 5cb6132b8147..eb0ce35a7a9c 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -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, -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() 2025-05-12 2:52 ` Wonkon Kim @ 2025-05-12 22:20 ` Bart Van Assche 2025-05-13 2:22 ` Martin K. Petersen 1 sibling, 0 replies; 6+ messages in thread From: Bart Van Assche @ 2025-05-12 22:20 UTC (permalink / raw) To: Wonkon Kim, James.Bottomley, martin.petersen, linux-scsi, linux-kernel On 5/11/25 7:52 PM, Wonkon Kim wrote: > It is better to print saved_err and saved_uic_err in hex format. > Integer format is hard to decode. Reviewed-by: Bart Van Assche <bvanassche@acm.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() 2025-05-12 2:52 ` Wonkon Kim 2025-05-12 22:20 ` Bart Van Assche @ 2025-05-13 2:22 ` Martin K. Petersen 1 sibling, 0 replies; 6+ messages in thread From: Martin K. Petersen @ 2025-05-13 2:22 UTC (permalink / raw) To: Wonkon Kim Cc: bvanassche, James.Bottomley, martin.petersen, linux-scsi, linux-kernel Wonkon, > It is better to print saved_err and saved_uic_err in hex format. > Integer format is hard to decode. Applied to 6.16/scsi-staging, thanks! -- Martin K. Petersen ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-05-13 2:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20250507020722epcas1p1171c5e96ef474d587a1a35af8d6931bf@epcas1p1.samsung.com>
2025-05-07 2:07 ` [PATCH] ufs: core: Print error value as hex format on ufshcd_err_handler() wkon-kim
2025-05-07 19:28 ` Bart Van Assche
2025-05-12 2:32 ` 김원곤/System Device개발그룹(무선)/Engineer/삼성전자
[not found] <CGME20250512025214epcas1p273986e3b3bb3451e4039094d21611e86@epcas1p2.samsung.com>
2025-05-12 2:52 ` Wonkon Kim
2025-05-12 22:20 ` Bart Van Assche
2025-05-13 2:22 ` Martin K. Petersen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox