warning fixes

This commit is contained in:
Stanislav Shwartsman 2011-08-09 18:00:19 +00:00
parent d2b0146a7e
commit 17a94fc58e
2 changed files with 3 additions and 2 deletions

View File

@ -1286,7 +1286,8 @@ bx_phy_address BX_CPU_C::translate_guest_physical(bx_phy_address guest_paddr, bx
extern bx_bool isMemTypeValidMTRR(unsigned memtype);
if (! isMemTypeValidMTRR((curr_entry >> 3) & 7)) {
BX_DEBUG(("EPT %s: EPT misconfiguration memtype=%d", bx_paging_level[leaf], (curr_entry >> 3) & 7));
BX_DEBUG(("EPT %s: EPT misconfiguration memtype=%d",
bx_paging_level[leaf], (unsigned)((curr_entry >> 3) & 7)));
vmexit_reason = VMX_VMEXIT_EPT_MISCONFIGURATION;
break;
}

View File

@ -551,7 +551,7 @@ BX_INSF_TYPE BX_CPP_AttrRegparmN(1) BX_CPU_C::MONITOR(bxInstruction_c *i)
exception(BX_UD_EXCEPTION, 0);
}
BX_DEBUG(("MONITOR instruction executed EAX = 0x08x", (unsigned) EAX));
BX_DEBUG(("MONITOR instruction executed EAX = 0x%08x", EAX));
#if BX_SUPPORT_VMX
VMexit_MONITOR(i);