]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
mm: improve message in populate physmap when the domain is direct mapped
authorJulien Grall <julien.grall@citrix.com>
Tue, 27 Oct 2015 13:47:33 +0000 (14:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Oct 2015 13:47:33 +0000 (14:47 +0100)
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 <julien.grall@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/memory.c

index 241655b0ef225f1c5061ce4c948ca0c32d62254b..23f90c66fa499163b5c472e6ad4d0db55dfee3cb 100644 (file)
@@ -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);