From patchwork Thu Aug 15 17:32:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 171439 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2478740ily; Thu, 15 Aug 2019 10:34:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN4qbWPL5QqJqApUldcKz+1f099N19f+nukQz99erLTIaUAIVJMbtVuowKebvsFTmUDp2D X-Received: by 2002:a5d:915a:: with SMTP id y26mr6657346ioq.207.1565890467522; Thu, 15 Aug 2019 10:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565890467; cv=none; d=google.com; s=arc-20160816; b=BFPCNmfwZJSB0ffGpiupkZeDr1BH1vafcKXvdy71NymZ9lzxtkKOriqcPOzpiOUReB KCdEFfjEW5MR5ykN7P9NQ9DWzWy3UoouNtt11rtOyULVl06ohVnVq1BTKKG/hK0zGGdk AyCEIWbNixt1756y/BFZF8WgCNaV5zrYKT2naE+pmAthtGAuYtdypWgXKJB3f/oLejje cuD7q4DGWX+WPmWUnPfL0Uo9cYzdAhuwjH71ezOOGKPnig2X6NTjGoKrCzIlflSDl8ET TFExzoTQL0aImr0KUl3mPTLcPDrBg8I5Kbv5Qz+PBk01sCEP2ZVW5HuOPxTUhu4ouwdO 6m1w== 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=AnsXiwfAn3wc1/V5RvWzTOkljbtxAaYxAkk+bmgRUA0=; b=0TTzlNJKD2SMGeq99mdEAEZVEPk17FyZKbLjYTgPTFRxFnbgDf4J3scTU5gntxh7BT BP9ioRK3FXNsVkG5jbMDNH1Ane/ml65JZyXX83W2txgCori9yzaUotf9eXL0/Y5B3jp2 Itz7yVPoCnptc8z1IA8c9is3trOdcgs9icl4DJzrneNveqe6egWkxFHoLtYAQu8aUxHb vLMMWZ/Cc/C2z6uatetJfIdwkBwuWqojuDuMxjK2J8izUYf3iE71ynmYhv9JN743XeC6 Wt3yfUUMXLhdFz21JAAlL6OM5tQV/ZTO2UHbcLSW64YG+MmZWpF0mF32xTe6FWPXR2Pm qkiA== 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 m23si3510634jah.8.2019.08.15.10.34.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2019 10:34:27 -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 1hyJca-0007EK-2D; Thu, 15 Aug 2019 17:33:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hyJcX-0007EE-Vk for xen-devel@lists.xenproject.org; Thu, 15 Aug 2019 17:33:06 +0000 X-Inumbo-ID: bbeb0bde-bf82-11e9-b90c-bc764e2007e4 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id bbeb0bde-bf82-11e9-b90c-bc764e2007e4; Thu, 15 Aug 2019 17:33:03 +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 D2EC928; Thu, 15 Aug 2019 10:33:02 -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 2BAB33F706; Thu, 15 Aug 2019 10:33:02 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 15 Aug 2019 18:32:58 +0100 Message-Id: <20190815173258.20752-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 initrd_load() 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" initrd_load() 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 126374f603..33171081ea 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1818,8 +1818,8 @@ static void __init initrd_load(struct kernel_info *kinfo) paddr = mod->start; len = mod->size; - printk("Loading dom0 initrd from %"PRIpaddr" to 0x%"PRIpaddr"-0x%"PRIpaddr"\n", - paddr, load_addr, load_addr + len); + printk("Loading %pd initrd from %"PRIpaddr" to 0x%"PRIpaddr"-0x%"PRIpaddr"\n", + kinfo->d, paddr, load_addr, load_addr + len); /* Fix up linux,initrd-start and linux,initrd-end in /chosen */ node = fdt_path_offset(kinfo->fdt, "/chosen");