From patchwork Fri Jun 30 15:54:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 9819931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCF6F602B1 for ; Fri, 30 Jun 2017 15:57:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD50C2853B for ; Fri, 30 Jun 2017 15:57:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B14AD286B9; Fri, 30 Jun 2017 15:57:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B7242853B for ; Fri, 30 Jun 2017 15:57:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFx-0000ft-T8; Fri, 30 Jun 2017 15:54:53 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQyFw-0000ce-Jj for xen-devel@lists.xen.org; Fri, 30 Jun 2017 15:54:52 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id C8/9A-02176-B4476595; Fri, 30 Jun 2017 15:54:51 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRWlGSWpSXmKPExsVysyfVTde7JCz S4MRLEYslHxezODB6HN39mymAMYo1My8pvyKBNWNT11emgt3CFQ+29LA2MD7i7mLk4hAS2Mwo Mfv2VxYI5zSjRNuaD2xdjJwcbAKaEnc+f2ICsUUEpCWufb7MCGIzCzhIvPl4jwXEFhaIlvh46 SYziM0ioCqx7ec/MJtXwErixpMHYL0SAvISu9ousoLYnEDx4/8g4kIClhKvZ11lmcDIvYCRYR WjRnFqUVlqka6hhV5SUWZ6RkluYmaOrqGBqV5uanFxYnpqTmJSsV5yfu4mRqCHGYBgB2PTds9 DjJIcTEqivCuvhUYK8SXlp1RmJBZnxBeV5qQWH2KU4eBQkuBdUxQWKSRYlJqeWpGWmQMMNZi0 BAePkgivbBBQmre4IDG3ODMdInWK0ZhjxdtdX5g4Xk34/41JiCUvPy9VSpw3HWSSAEhpRmke3 CBYDFxilJUS5mUEOk2IpyC1KDezBFX+FaM4B6OSMO9JkCk8mXklcPteAZ3CBHSK8IwQkFNKEh FSUg2MxqrnCteu2KMa8XZuv2TDzcyarWdKyo7UPtr31Ue5O9x5bfz0f/MnPCl8O/3F6Q/L9e6 Y7Zx/I/mPxTqVAy/5xK+wO8f8/21fMCnjAqNhfDDX0pwLDisWpSkw/rnl3atQFKJXbXAm/sh8 X7VXCd0iZ9x+hnEEf2q8o+rbK/VB2TpTlHOhpnOlEktxRqKhFnNRcSIAc/EBSXwCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1498838090!97274324!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 42246 invoked from network); 30 Jun 2017 15:54:51 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-206.messagelabs.com with SMTP; 30 Jun 2017 15:54:51 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8E7B61610; Fri, 30 Jun 2017 08:54:50 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EF6313F41F; Fri, 30 Jun 2017 08:54:49 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 30 Jun 2017 16:54:30 +0100 Message-Id: <20170630155431.23824-16-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630155431.23824-1-julien.grall@arm.com> References: <20170630155431.23824-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v3 15/16] xen/arm: mm: Use __func__ rather than plain name in format string X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Julien Grall Reviewed-by: Stefano Stabelllini --- Changes in v2: - Patch added Changes in v3: - Add Stefano's reviewed-by --- xen/arch/arm/mm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index ea4a35ed7a..98260f604c 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -996,7 +996,7 @@ static int create_xen_entries(enum xenmap_operation op, { rc = create_xen_table(entry); if ( rc < 0 ) { - printk("create_xen_entries: L2 failed\n"); + printk("%s: L2 failed\n", __func__); goto out; } } @@ -1011,8 +1011,8 @@ static int create_xen_entries(enum xenmap_operation op, case RESERVE: if ( lpae_valid(*entry) ) { - printk("create_xen_entries: trying to replace an existing mapping addr=%lx mfn=%"PRI_mfn"\n", - addr, mfn_x(mfn)); + printk("%s: trying to replace an existing mapping addr=%lx mfn=%"PRI_mfn"\n", + __func__, addr, mfn_x(mfn)); return -EINVAL; } if ( op == RESERVE ) @@ -1025,8 +1025,8 @@ static int create_xen_entries(enum xenmap_operation op, case REMOVE: if ( !lpae_valid(*entry) ) { - printk("create_xen_entries: trying to %s a non-existing mapping addr=%lx\n", - op == REMOVE ? "remove" : "modify", addr); + printk("%s: trying to %s a non-existing mapping addr=%lx\n", + __func__, op == REMOVE ? "remove" : "modify", addr); return -EINVAL; } if ( op == REMOVE ) @@ -1038,8 +1038,8 @@ static int create_xen_entries(enum xenmap_operation op, pte.pt.xn = PTE_NX_MASK(ai); if ( !pte.pt.ro && !pte.pt.xn ) { - printk("create_xen_entries: Incorrect combination for addr=%lx\n", - addr); + printk("%s: Incorrect combination for addr=%lx\n", + __func__, addr); return -EINVAL; } }