From patchwork Thu Aug 15 17:35:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 171440 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2481634ily; Thu, 15 Aug 2019 10:37:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhnhvBcT8eY9VYcpTW+a/LUi7DuynFzHZM5bwk54M9KeOzg2eJLbue7vZp2+HZ1yylzmgP X-Received: by 2002:a5d:804f:: with SMTP id b15mr1092317ior.92.1565890624636; Thu, 15 Aug 2019 10:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565890624; cv=none; d=google.com; s=arc-20160816; b=LqUuCe9memy+pQhA4Lx4UaX++mXYSCGlcZ/Km/lchR1eT+wdE8UPsr4kUiszTeFOfU fvAF2/a+rr3oIbf8BIFpK/lI524nGlTySsfshOfDc+f+6a8tMV2DAFyj8CEpKoKRvaiR 6VKBDcyO2yeRgklFYcg6cGkxjOWhxIposoDIKduW+O8UdRgBeCVtpGMhcHhtgmEkvR3F J7k5QD0P0Vd0eEgCBSFFmsb3Oa2i+raI1+rppbtvYlA3V4KKZDcDVChhdKPRkrmME5KT Q5LUhLHJce70ZsGwOevyihA1oEH0GtMb4FR6AlOwQbjC9xOjtugur29Hj+6R0I4k1AQu NADQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from; bh=D3dnOUV9qlHuISpfTXjf0F1APq4EOqPHUWr26IwEg18=; b=0TcJbR/beGwekMnQloV7djh23NeCQWlPCBsd2sUMP4i1bEuCrr8VhLR9hoPOOOGD+m /5HBDe7mXXh414NW1cQ/idwRlXeYxwD46TggzYja3M3b00f8O6K8k10I1cJoueJj2mK2 Qyx0K4brdjHILqpQOepVKj82/FXlXW9mONvdtpm1BWnt9dpcjirA3ySxIYHPyWZYvx86 Q1u8AmvGyK/zguZVsBS5NHncSp4jg3F0z4r/hGP2noxRFjugSixCFc+j7hXoDSZ/t49l EMDOzFkjfdD0F0AHekwoWjOBa0Xpbp0r/KmkZJhNYtLFsJfruqUScorumPMFz5j2+1Su 6cDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e11si3768885jaq.93.2019.08.15.10.37.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2019 10:37:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) 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 1hyJf3-0007Qu-Gf; Thu, 15 Aug 2019 17:35:41 +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 1hyJf3-0007Qp-0I for xen-devel@lists.xenproject.org; Thu, 15 Aug 2019 17:35:41 +0000 X-Inumbo-ID: 18003aca-bf83-11e9-8ba4-12813bfff9fa Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 18003aca-bf83-11e9-8ba4-12813bfff9fa; Thu, 15 Aug 2019 17:35:37 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 300C828; Thu, 15 Aug 2019 10:35:37 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D6143F706; Thu, 15 Aug 2019 10:35:36 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 15 Aug 2019 18:35:33 +0100 Message-Id: <20190815173533.26310-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH] xen/arm: domain_build: Print the correct domain in construct_domain() 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 Grall , Stefano Stabellini , Volodymyr Babchuk MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" construct_domain() can be called by other domain than dom0. To avoid confusion in the log, print the correct domain. Signed-off-by: Julien Grall Reviewed-by: Volodymyr Babchuk Reviewed-by: Stefano Stabellini --- xen/arch/arm/domain_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 33171081ea..cf9ffbc360 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1978,7 +1978,7 @@ static int __init construct_domain(struct domain *d, struct kernel_info *kinfo) cpu = cpumask_cycle(cpu, &cpu_online_map); if ( vcpu_create(d, i, cpu) == NULL ) { - printk("Failed to allocate dom0 vcpu %d on pcpu %d\n", i, cpu); + printk("Failed to allocate %pd vcpu %d on pcpu %d\n", d, i, cpu); break; }