From patchwork Sun Mar 22 16:14:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11451879 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3378E1744 for ; Sun, 22 Mar 2020 16:16:11 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1986420724 for ; Sun, 22 Mar 2020 16:16:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1986420724 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jG3Ff-0004zM-GW; Sun, 22 Mar 2020 16:15:03 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jG3Fe-0004xO-8L for xen-devel@lists.xenproject.org; Sun, 22 Mar 2020 16:15:02 +0000 X-Inumbo-ID: 39ecac9a-6c58-11ea-8134-12813bfff9fa Received: from mail-ed1-f66.google.com (unknown [209.85.208.66]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 39ecac9a-6c58-11ea-8134-12813bfff9fa; Sun, 22 Mar 2020 16:14:37 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id cf14so4284541edb.13 for ; Sun, 22 Mar 2020 09:14:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L1T44arnxUCL2r70XG7PRouN++rEfiBPPpnuW47vsAs=; b=b9r1GJEMIp5wYoanlWO+Et1OxnaeiqwCV4vARVB8j0d34RVz/j7kuH50zXoUvravGW CIlvDM8P+f5wlz/8iuYnR+h/8g/zbk9hUQzyT6QrI6Iv6/GaMgks4mZYwQifZmCTh83G YODZtI68E1JXYJ5+YsDopBjcgCi008jjivsC8WrhcwqY4C/EDLgcmU3CoODt15c3wbZ4 av5KehbJ7JitHoBSTYMXhaZidP/ylP7n286T41kAMaaVD2gFNPRXUmTI8s6eJL2wyDmb 25hH/PCPhr1UO60W6XbOB5HhbLkxCoCLxtjrdWmwY9kzNBZhDyAgInzZIAeSjgOaD2RF nBJw== X-Gm-Message-State: ANhLgQ2ApvOrldFtgkkps80fCVJ0YHnfGzymyZ8TJYEWZwO29EOswREc Lv+JKSFbd0bDi+E5npP1p20iDUk1Br2+Og== X-Google-Smtp-Source: ADFU+vvVWEHQJmzDAewdRV2U/X28YEJ1g1rXfLbUWXvdbBGyUKail6uIE69qnl851t0Vjcg35VadOg== X-Received: by 2002:a17:906:7e07:: with SMTP id e7mr15978001ejr.135.1584893676693; Sun, 22 Mar 2020 09:14:36 -0700 (PDT) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id v13sm106693edj.62.2020.03.22.09.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 09:14:36 -0700 (PDT) From: julien@xen.org To: xen-devel@lists.xenproject.org Date: Sun, 22 Mar 2020 16:14:13 +0000 Message-Id: <20200322161418.31606-13-julien@xen.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200322161418.31606-1-julien@xen.org> References: <20200322161418.31606-1-julien@xen.org> Subject: [Xen-devel] [PATCH 12/17] xen/x86: p2m: Remove duplicate error message in p2m_pt_audit_p2m() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: julien@xen.org, Wei Liu , Andrew Cooper , George Dunlap , Julien Grall , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Julien Grall p2m_pt_audit_p2m() has one place where the same message may be printed twice via printk and P2M_PRINTK. Remove the one printed using printk to stay consistent with the rest of the code. Signed-off-by: Julien Grall Acked-by: Jan Beulich --- This was originally sent as part of "xen/arm: Properly disable M2P on Arm" [1]. Changes since the original version: - Move the reflow in a separate patch. [1] <20190603160350.29806-1-julien.grall@arm.com> --- xen/arch/x86/mm/p2m-pt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/arch/x86/mm/p2m-pt.c b/xen/arch/x86/mm/p2m-pt.c index cccb06c26e..77450a9484 100644 --- a/xen/arch/x86/mm/p2m-pt.c +++ b/xen/arch/x86/mm/p2m-pt.c @@ -1061,8 +1061,6 @@ long p2m_pt_audit_p2m(struct p2m_domain *p2m) !p2m_is_shared(type) ) { pmbad++; - printk("mismatch: gfn %#lx -> mfn %#lx" - " -> gfn %#lx\n", gfn, mfn, m2pfn); P2M_PRINTK("mismatch: gfn %#lx -> mfn %#lx" " -> gfn %#lx\n", gfn, mfn, m2pfn); BUG();