From patchwork Fri Nov 11 06:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Lee X-Patchwork-Id: 624176 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 517AAC4332F for ; Fri, 11 Nov 2022 06:22:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232746AbiKKGWF (ORCPT ); Fri, 11 Nov 2022 01:22:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbiKKGWF (ORCPT ); Fri, 11 Nov 2022 01:22:05 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB4165E5A for ; Thu, 10 Nov 2022 22:22:02 -0800 (PST) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221111062200epoutp0183986a3b0e181423be7a0a39d748809c~mc4N5QKN20066400664epoutp01Y for ; Fri, 11 Nov 2022 06:22:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221111062200epoutp0183986a3b0e181423be7a0a39d748809c~mc4N5QKN20066400664epoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668147720; bh=QIr1dHYcDtmBCo3Pin7ZWdcXDJ3SQIMcXm90WmlaD6g=; h=From:To:Cc:Subject:Date:References:From; b=X3d3g5B3jy/OJQMJuY48NxyVL06kxeDq9RBgnSOxYDiytkwTnNCVrCXPVwb7nUGck 2KS5g2S/oRVPwNHgY3iOQtRTVlgZ4KcQIZsIbiSdxjVBDN9IJXeQYWzpg3U67mAJLv qfe+66yd7U7BpRszp51akDN4SeWZGIrAmH8HfHMo= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20221111062159epcas1p46fbb40f4fd9a01a5950fa83a86995915~mc4NYYfzh2517325173epcas1p4A; Fri, 11 Nov 2022 06:21:59 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.36.226]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4N7pWq2CGXz4x9Pv; Fri, 11 Nov 2022 06:21:59 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.D9.07691.70AED636; Fri, 11 Nov 2022 15:21:59 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20221111062158epcas1p1c3ef28f75c39a1c1dc4c473266462fc8~mc4MfA3fd0150001500epcas1p1w; Fri, 11 Nov 2022 06:21:58 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221111062158epsmtrp236e6d85cd2bba4769b83a9b6c0b9d18e~mc4MePXCE2890828908epsmtrp2v; Fri, 11 Nov 2022 06:21:58 +0000 (GMT) X-AuditID: b6c32a38-0cdff70000021e0b-33-636dea079fac Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id D4.6E.18644.60AED636; Fri, 11 Nov 2022 15:21:58 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221111062158epsmtip24fc99f873d7d7924953a34861f8e22a8~mc4MSueET2543325433epsmtip2O; Fri, 11 Nov 2022 06:21:58 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, adrian.hunter@intel.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ChanWoo Lee Subject: [PATCH] scsi: ufs: core: Separate function name and message Date: Fri, 11 Nov 2022 15:21:26 +0900 Message-Id: <20221111062126.7307-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsWy7bCmni77q9xkg8dXeCxOPlnDZvFg3jY2 i5c/r7JZHHzYyWIx7cNPZosZp9pYLRbd2MZkcXnXHDaL7us72CyWH//H5MDlcfmKt8fiPS+Z PCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwBHVLZNRmpiSmqRQmpecn5KZl66rZJ3 cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtCNSgpliTmlQKGAxOJiJX07m6L80pJUhYz8 4hJbpdSClJwCswK94sTc4tK8dL281BIrQwMDI1OgwoTsjKZNRQX9whX/zrxha2Ccwd/FyMkh IWAisWriSfYuRi4OIYEdjBKH+qawQDifGCW+XfvKBlIlJPCZUWLR4kqYjifT+pkhinYxSjx/ /gjK+cIosXndbMYuRg4ONgEtidvHvEHiIgIPGSXWXdoANolZQEPi5Kwn7CA1wgIuElceOoGE WQRUJWadXsgOYvMKWEncONbLDLFMXuLP/R5miLigxMmZT1ggxshLNG+dDbZXQuAnu8T0O5uY IBpcJI5vnwrVLCzx6vgWdghbSuLzu71sEA3NjBLbvl5ignA6GCU2tr5ghKgylvj0+TPYB8wC mhLrd+lDhBUldv6eywixmU/i3dceVpASCQFeiY42IYgSFYk5XefYYHZ9vPGYFcL2kDi+cx8z JBRjJTacuMQ2gVF+FpJ/ZiH5ZxbC4gWMzKsYxVILinPTU4sNC0zgkZqcn7uJEZxMtSx2MM59 +0HvECMTB+MhRgkOZiUR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kW6E/mefRvIkOykJL/l9sGLB7Tp1d6TZnzd34G17ZFe7Lap62u/7beOCn6TBnn tn2eXlXfV5TNCDAQ+GFZOy3YquuwUafDjphtbcbfhLObb9+RfVb58nrjhcaErKbFNv9rwuL+ nDdjfuz3VS3oYMsf32dTP50ujtrf9iSobO3fSEfNY9t//NYV5n37q/AdX+TPXT5sd5VuT2P4 57ZI6NABqY0d5V4zzybpXp6d93MWW5uhSNX9n7xu/hGWb4Lc3iSt9OupXrr78sRteacjjr1f IWhQfzN1z3L7tA8vLoa7pl5u47v1SWS1Od/6tnzXufY/LitXb55fybi9YMYax0mnlFiKMxIN tZiLihMB+l7FH9sCAAA= X-CMS-MailID: 20221111062158epcas1p1c3ef28f75c39a1c1dc4c473266462fc8 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221111062158epcas1p1c3ef28f75c39a1c1dc4c473266462fc8 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: ChanWoo Lee Separate the function name and message to make it easier to check the log. Modify messages to fit the format of others. Signed-off-by: ChanWoo Lee --- drivers/ufs/core/ufshcd.c | 6 +++--- drivers/ufs/core/ufshpb.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index e389d73765fe..fdbcbcf3f9d1 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -4480,7 +4480,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; } @@ -4497,11 +4497,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; } diff --git a/drivers/ufs/core/ufshpb.c b/drivers/ufs/core/ufshpb.c index b7f412d0f301..148017b2dfeb 100644 --- a/drivers/ufs/core/ufshpb.c +++ b/drivers/ufs/core/ufshpb.c @@ -2289,7 +2289,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 */ @@ -2298,7 +2298,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; } @@ -2310,7 +2310,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: