max physical addr size is 48 bit so print less characters

This commit is contained in:
Stanislav Shwartsman 2013-02-12 21:26:23 +00:00
parent 97de484efb
commit 66c9274bdb
2 changed files with 3 additions and 1 deletions

View File

@ -380,7 +380,7 @@ BOCHSAPI extern logfunc_t *genlog;
#endif
#if BX_PHY_ADDRESS_LONG
#define FMT_PHY_ADDRX FMT_ADDRX64
#define FMT_PHY_ADDRX FMT_PHY_ADDRX64
#else
#define FMT_PHY_ADDRX FMT_ADDRX32
#endif

View File

@ -55,10 +55,12 @@ extern "C" {
#define FMT_LL "%ll"
#define FMT_TICK "%011llu"
#define FMT_ADDRX64 "%016llx"
#define FMT_PHY_ADDRX64 "%012llx"
#else
#define FMT_LL "%I64"
#define FMT_TICK "%011I64u"
#define FMT_ADDRX64 "%016I64x"
#define FMT_PHY_ADDRX64 "%012I64x"
#endif
// always return regular file.