summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-10-28 15:59:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-10-28 15:59:12 (GMT)
commitc3aba0893c29cc098c029306fd7a4c8c1fa2eee2 (patch)
tree49432db1af3115758a216ac5bfd92d5935929858 /src/arch
parent55866b34f5cff022a465d58f808450f25f354218 (diff)
Updated the code of the old panel and displayed found strings again.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@276 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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;