summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/archbase.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/arch/archbase.c b/src/arch/archbase.c
index 61e2396..6241164 100644
--- a/src/arch/archbase.c
+++ b/src/arch/archbase.c
@@ -24,6 +24,7 @@
#include "archbase.h"
+#include <inttypes.h>
#include <stdio.h>
@@ -49,22 +50,22 @@ size_t vmpa_to_string(vmpa_t addr, MemoryDataSize msize, char buffer[VMPA_MAX_SI
switch (msize)
{
case MDS_8_BITS:
- snprintf(buffer, VMPA_MAX_SIZE,"0x%02llx", addr);
+ snprintf(buffer, VMPA_MAX_SIZE,"0x%02" PRIx64, addr);
result = 4;
break;
case MDS_16_BITS:
- snprintf(buffer, VMPA_MAX_SIZE, "0x%04llx", addr);
+ snprintf(buffer, VMPA_MAX_SIZE, "0x%04" PRIx64, addr);
result = 6;
break;
case MDS_32_BITS:
- snprintf(buffer, VMPA_MAX_SIZE, "0x%08llx", addr);
+ snprintf(buffer, VMPA_MAX_SIZE, "0x%08" PRIx64, addr);
result = 10;
break;
case MDS_64_BITS:
- snprintf(buffer, VMPA_MAX_SIZE, "0x%016llx", addr);
+ snprintf(buffer, VMPA_MAX_SIZE, "0x%016" PRIx64, addr);
result = 18;
break;