From 3f3a26badbe9e980c759e2246cb248ceef018968 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Tue, 27 Oct 2015 14:47:33 +0100 Subject: [PATCH] mm: improve message in populate physmap when the domain is direct mapped The current domain and the domain pointed by the variable "d" are not the same. However, when it's not possible to get a reference on the page, the target domain ID is not printed. This makes the message difficult to understand. Improve the message by printing the target domain ID. Signed-off-by: Julien Grall Reviewed-by: Andrew Cooper --- xen/common/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/memory.c b/xen/common/memory.c index 241655b0ef..23f90c66fa 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -140,8 +140,8 @@ static void populate_physmap(struct memop_args *a) if ( !get_page(page, d) ) { gdprintk(XENLOG_INFO, - "mfn %#"PRI_xen_pfn" doesn't belong to the" - " domain\n", mfn); + "mfn %#"PRI_xen_pfn" doesn't belong to d%d\n", + mfn, d->domain_id); goto out; } put_page(page); -- 2.39.5