From: Julien Grall Date: Tue, 27 Oct 2015 13:47:33 +0000 (+0100) Subject: mm: improve message in populate physmap when the domain is direct mapped X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3f3a26badbe9e980c759e2246cb248ceef018968;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git 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 --- 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);