From: kfraser@localhost.localdomain Date: Fri, 3 Nov 2006 12:32:26 +0000 (+0000) Subject: [HVM] More printk cleanups. X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bdc4e604b2c47cf275744dcbccee505d9ed681b1;p=xen.git [HVM] More printk cleanups. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 38aff434ae..f423f41c6c 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -337,7 +337,7 @@ void hvm_print_line(struct vcpu *v, const char c) if ( c != '\n' ) hd->pbuf[hd->pbuf_idx++] = '\n'; hd->pbuf[hd->pbuf_idx] = '\0'; - printk(XENLOG_G_DEBUG "HVM%u: %s\n", v->domain->domain_id, hd->pbuf); + printk(XENLOG_G_DEBUG "HVM%u: %s", v->domain->domain_id, hd->pbuf); hd->pbuf_idx = 0; } spin_unlock(&hd->pbuf_lock); diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c index bcfaa61376..24c3af8c0b 100644 --- a/xen/arch/x86/hvm/vlapic.c +++ b/xen/arch/x86/hvm/vlapic.c @@ -801,7 +801,8 @@ static void vlapic_write(struct vcpu *v, unsigned long address, break; default: - printk("Local APIC Write to read-only register\n"); + gdprintk(XENLOG_WARNING, + "Local APIC Write to read-only register 0x%x\n", offset); break; } } diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index a807c2c61e..6a49cec3fc 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -360,8 +360,7 @@ static void vmx_do_launch(struct vcpu *v) error |= __vmwrite(GUEST_TR_LIMIT, 0xff); shadow_update_paging_modes(v); - printk("%s(): GUEST_CR3<=%08lx, HOST_CR3<=%08lx\n", - __func__, v->arch.hvm_vcpu.hw_cr3, v->arch.cr3); + __vmwrite(GUEST_CR3, v->arch.hvm_vcpu.hw_cr3); __vmwrite(HOST_CR3, v->arch.cr3);