@@ -174,13 +174,13 @@ int main (void)
{
int64_t sframe_vaddr = 0x402220;
int64_t text_vaddr = 0x401020;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ " \n", text_vaddr, sframe_vaddr);
test_text_findfre ('a', text_vaddr, sframe_vaddr);
sframe_vaddr = 0x401020;
text_vaddr = 0x402220;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", text_vaddr, sframe_vaddr);
test_text_findfre ('b', text_vaddr, sframe_vaddr);
}
@@ -193,13 +193,13 @@ int main (void)
{
int64_t sframe_vaddr = 0x402220;
int64_t text_vaddr = 0x401020;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", text_vaddr, sframe_vaddr);
test_text_findfre ('a', text_vaddr, sframe_vaddr);
sframe_vaddr = 0x401020;
text_vaddr = 0x402220;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", text_vaddr, sframe_vaddr);
test_text_findfre ('b', text_vaddr, sframe_vaddr);
}
@@ -236,13 +236,13 @@ int main (void)
{
int64_t sframe_vaddr = 0x4b5620;
int64_t text_vaddr = 0x4038b0;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", text_vaddr, sframe_vaddr);
test_text_findfre ('a', text_vaddr, sframe_vaddr);
sframe_vaddr = 0x4038b0;
text_vaddr = 0x4b5620;
- printf ("Testing with text_vaddr = %#lx; sframe_vaddr = %#lx\n", text_vaddr,
- sframe_vaddr);
+ printf ("Testing with text_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", text_vaddr, sframe_vaddr);
test_text_findfre ('b', text_vaddr, sframe_vaddr);
}
@@ -127,13 +127,13 @@ int main (void)
{
int64_t sframe_vaddr = 0x402220;
int64_t plt_vaddr = 0x401020;
- printf ("Testing with plt_vaddr = %#lx; sframe_vaddr = %#lx\n", plt_vaddr,
- sframe_vaddr);
+ printf ("Testing with plt_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", plt_vaddr, sframe_vaddr);
test_plt_findfre ('a', plt_vaddr, sframe_vaddr);
sframe_vaddr = 0x401020;
plt_vaddr = 0x402220;
- printf ("Testing with plt_vaddr = %#lx; sframe_vaddr = %#lx\n", plt_vaddr,
- sframe_vaddr);
+ printf ("Testing with plt_vaddr = %#" PRIx64 "; sframe_vaddr = %#" PRIx64
+ "\n", plt_vaddr, sframe_vaddr);
test_plt_findfre ('b', plt_vaddr, sframe_vaddr);
}
@@ -170,14 +170,14 @@ main (void)
{
int64_t sframe_vaddr = 0x402220;
int64_t plt_vaddr = 0x401020;
- printf ("plt-findfre-2a: Testing with plt_vaddr = %#lx; sframe_vaddr = %#lx\n",
- plt_vaddr, sframe_vaddr);
+ printf ("plt-findfre-2a: Testing with plt_vaddr = %#" PRIx64
+ "; sframe_vaddr = %#" PRIx64 "\n", plt_vaddr, sframe_vaddr);
test_plt_findfre ('a', plt_vaddr, sframe_vaddr);
sframe_vaddr = 0x401020;
plt_vaddr = 0x402220;
- printf ("plt-findfre-2b: Testing with plt_vaddr = %#lx; sframe_vaddr = %#lx\n",
- plt_vaddr, sframe_vaddr);
+ printf ("plt-findfre-2b: Testing with plt_vaddr = %#" PRIx64
+ "; sframe_vaddr = %#" PRIx64 "\n", plt_vaddr, sframe_vaddr);
test_plt_findfre ('b', plt_vaddr, sframe_vaddr);
return 0;
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#include <inttypes.h>
#include "sframe-api.h"