From: Julien Grall Date: Tue, 13 Aug 2019 18:11:28 +0000 (+0100) Subject: xen/arm: domain_build: Print the correct domain in dtb_load() X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1295 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4c555ec758e829d424a85df02821b2293ca03702;p=xen.git xen/arm: domain_build: Print the correct domain in dtb_load() dtb_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 Release-acked-by: Juergen Gross --- diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 11382a605b..be550af983 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2167,15 +2167,17 @@ static void __init dtb_load(struct kernel_info *kinfo) { unsigned long left; - printk("Loading dom0 DTB to 0x%"PRIpaddr"-0x%"PRIpaddr"\n", - kinfo->dtb_paddr, kinfo->dtb_paddr + fdt_totalsize(kinfo->fdt)); + printk("Loading %pd DTB to 0x%"PRIpaddr"-0x%"PRIpaddr"\n", + kinfo->d, kinfo->dtb_paddr, + kinfo->dtb_paddr + fdt_totalsize(kinfo->fdt)); left = copy_to_guest_phys_flush_dcache(kinfo->d, kinfo->dtb_paddr, kinfo->fdt, fdt_totalsize(kinfo->fdt)); if ( left != 0 ) - panic("Unable to copy the DTB to dom0 memory (left = %lu bytes)\n", left); + panic("Unable to copy the DTB to %pd memory (left = %lu bytes)\n", + kinfo->d, left); xfree(kinfo->fdt); }