aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/mtrr.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-02-16 08:48:23 +0100
committerJan Beulich <jbeulich@suse.com>2012-02-16 08:48:23 +0100
commit819e844385469bf8933d245fdb63b6e4727bfb09 (patch)
treeb82d2851fe6136f1de887b25cd3e5187e035444d /xen/arch/x86/hvm/mtrr.c
parent5c4e1c1b482e7fdf08d42447b4ea054a977e187c (diff)
downloadxen-819e844385469bf8933d245fdb63b6e4727bfb09.tar.gz
xen-819e844385469bf8933d245fdb63b6e4727bfb09.tar.bz2
xen-819e844385469bf8933d245fdb63b6e4727bfb09.zip
replace bogus gdprintk() uses with {,d}printk()
When the subject domain is not the current one (e.g. during domctl or HVM save/restore handling), use of gdprintk() is questionable at best, as it won't give the intended information on what domain is affected. Use plain printk() or dprintk() instead, but keep things (mostly) as guest messages by using XENLOG_G_*. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/mtrr.c')
-rw-r--r--xen/arch/x86/hvm/mtrr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c
index 9f78a91878..6a30a8e697 100644
--- a/xen/arch/x86/hvm/mtrr.c
+++ b/xen/arch/x86/hvm/mtrr.c
@@ -667,7 +667,8 @@ static int hvm_load_mtrr_msr(struct domain *d, hvm_domain_context_t *h)
vcpuid = hvm_load_instance(h);
if ( vcpuid >= d->max_vcpus || (v = d->vcpu[vcpuid]) == NULL )
{
- gdprintk(XENLOG_ERR, "HVM restore: domain has no vcpu %u\n", vcpuid);
+ dprintk(XENLOG_G_ERR, "HVM restore: dom%d has no vcpu%u\n",
+ d->domain_id, vcpuid);
return -EINVAL;
}