Skip to contentSkip to conversation

ufs: core: correct clear tm error log

PATCH Applied [email protected] 4 participants 4 messages Oct 3, 2023 – Oct 10, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ufs: core: correct clear tm error log

From: Peter Wang <[email protected]>

The clear tm function error log is inverted.

Fixes 4693fad7d6d4 ("scsi: ufs: core: Log error handler activity")
---
 drivers/ufs/core/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ufs/core/ufshcd.c +1 -1
index c2df07545f96..8382e8cfa414 100644
@@ -6895,7 +6895,7 @@ static int ufshcd_clear_tm_cmd(struct ufs_hba *hba, int tag)
 			mask, 0, 1000, 1000);
 
 	dev_err(hba->dev, "Clearing task management function with tag %d %s\n",
-		tag, err ? "succeeded" : "failed");
+		tag, err < 0 ? "failed" : "succeeded");
 
 out:
 	return err;
Signature · 1 line
2.18.0