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: 18483 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp572483wru; Thu, 10 Nov 2022 22:23:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf65CNewrXOErobcKN51g5uQtJkMo1R/NJAWi2wCfQ0kx/k+cpm3fcOSEyRDUBzJrX5OftTD X-Received: by 2002:a05:6402:651:b0:458:cc1b:a273 with SMTP id u17-20020a056402065100b00458cc1ba273mr240478edx.92.1668147784448; Thu, 10 Nov 2022 22:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668147784; cv=none; d=google.com; s=arc-20160816; b=SFTwjjwgsxn9GEAj9nKRlzYUMWiKphkzahrDo+5k73i2eKVIhugbqhuvZsvbVefqaX MF0c3SY5OFdbMfhjQjkyOB5oUYYPsenXFm9FygVRFC9A91G4lnDOB2+xBdu2FLba7DCg FR5+7TaYH9jNOhkKqxzf6XtSiXgpxjozHyjmz6IFF+klQ0nF3M9O3uJFfx5iAdc8BsUL yJTwvUZOfsYFBu9HWua2s33aUFLtpqRPr0mwyqXcW6fk2OcSW0lzBWuFRg2BId/dFAEE 18uHw1N81cbj+iJlbk9gpxXeMgj1ctxmUSDKtb8fwRnHWHq8OL+nCh06pXGpLLuQGRou hvfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=QIr1dHYcDtmBCo3Pin7ZWdcXDJ3SQIMcXm90WmlaD6g=; b=n0DqIR+HyhIsVFKezSP87CvqvMcEa72AIsyk5d0XfD3geGAyEjwIpCgA6/zCGaeO7Z /FE85T6NLU+LnxL2oNTjxwUVjOeZCs12ZT6wWKvLaaCalXwxOvB/J50TbLkCXVvKK9i0 Il9bCcnxYex2NghgG1oBwoTEOuggB9i/H+cXnJS24Erb2/L5bzyQxNGmFvkBJOsu31z6 b40nSKvQNphS3SdKdV1J52MausttUSwLtK6ju2YH4pprvHMfaC1Xq+Jn7trZN7dl3BKH qQwcqu6TTqci9VutYqivCtMVlznnZ6Cn7q5ZlPc2NPOmfMZzapeVX+E53Z7IrdV3dsvw gABg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=X3d3g5B3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg7-20020a1709072cc700b007a6ec6fb027si1487959ejc.538.2022.11.10.22.22.41; Thu, 10 Nov 2022 22:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=X3d3g5B3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbiKKGWG (ORCPT + 99 others); Fri, 11 Nov 2022 01:22:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiKKGWE (ORCPT ); Fri, 11 Nov 2022 01:22:04 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF38365E70 for ; Thu, 10 Nov 2022 22:22:02 -0800 (PST) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221111062200epoutp027ba83405e9b84a7916f87b4e20b79d66~mc4N5PB6J1613216132epoutp02Y for ; Fri, 11 Nov 2022 06:22:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221111062200epoutp027ba83405e9b84a7916f87b4e20b79d66~mc4N5PB6J1613216132epoutp02Y 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+ArltmDtCNSgp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sWy7bCSvC7bq9xkg9sTzSxOPlnDZvFg3jY2 i5c/r7JZHHzYyWIx7cNPZosZp9pYLRbd2MZkcXnXHDaL7us72CyWH//H5MDlcfmKt8fiPS+Z PCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwBHFJdNSmpOZllqkb5dAldG06aign7h in9n3rA1MM7g72Lk5JAQMJF4Mq2fuYuRi0NIYAejRNelLjaIhJTE7v3ngWwOIFtY4vDhYoia T4wSGz+/YwGJswloSdw+5g1SLiLwmlHieo8jiM0soCFxctYTdpASYQEXiSsPnUDCLAKqErNO L2QHsXkFrCRuHOtlhtgkL/Hnfg8zRFxQ4uTMJywQY+QlmrfOZp7AyDcLSWoWktQCRqZVjJKp BcW56bnFhgVGeanlesWJucWleel6yfm5mxjBga2ltYNxz6oPeocYmTgYDzFKcDArifBya2Qn C/GmJFZWpRblxxeV5qQWH2KU5mBREue90HUyXkggPbEkNTs1tSC1CCbLxMEp1cBUqKIx7W/E bce7O+9ap8kW6E/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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749179731153905869?= X-GMAIL-MSGID: =?utf-8?q?1749179731153905869?= 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: