FROMGIT: scsi: ufs: core: Separate function name and message

Separate the function name and message to make it easier to check the log.
Modify messages to fit the format of others.

Change-Id: Ia08005198d8a4482970b250178f5878a927bc4ab
Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Link: https://lore.kernel.org/r/20221111062126.7307-1-cw9316.lee@samsung.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 258234315
(cherry picked from commit 859ed37c9c git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next)
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
ChanWoo Lee
2022-11-11 15:21:26 +09:00
committed by Bart Van Assche
parent 04f5512a60
commit 7871280384
2 changed files with 6 additions and 6 deletions

View File

@@ -4552,7 +4552,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
QUERY_FLAG_IDN_FDEVICEINIT, 0, NULL);
if (err) {
dev_err(hba->dev,
"%s setting fDeviceInit flag failed with error %d\n",
"%s: setting fDeviceInit flag failed with error %d\n",
__func__, err);
goto out;
}
@@ -4569,11 +4569,11 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
if (err) {
dev_err(hba->dev,
"%s reading fDeviceInit flag failed with error %d\n",
"%s: reading fDeviceInit flag failed with error %d\n",
__func__, err);
} else if (flag_res) {
dev_err(hba->dev,
"%s fDeviceInit was not cleared by the device\n",
"%s: fDeviceInit was not cleared by the device\n",
__func__);
err = -EBUSY;
}

View File

@@ -2283,7 +2283,7 @@ static bool ufshpb_check_hpb_reset_query(struct ufs_hba *hba)
/* wait for the device to complete HPB reset query */
for (try = 0; try < HPB_RESET_REQ_RETRIES; try++) {
dev_dbg(hba->dev,
"%s start flag reset polling %d times\n",
"%s: start flag reset polling %d times\n",
__func__, try);
/* Poll fHpbReset flag to be cleared */
@@ -2292,7 +2292,7 @@ static bool ufshpb_check_hpb_reset_query(struct ufs_hba *hba)
if (err) {
dev_err(hba->dev,
"%s reading fHpbReset flag failed with error %d\n",
"%s: reading fHpbReset flag failed with error %d\n",
__func__, err);
return flag_res;
}
@@ -2304,7 +2304,7 @@ static bool ufshpb_check_hpb_reset_query(struct ufs_hba *hba)
}
if (flag_res) {
dev_err(hba->dev,
"%s fHpbReset was not cleared by the device\n",
"%s: fHpbReset was not cleared by the device\n",
__func__);
}
out: