]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
64-bit cleanness tweaks.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 1 Nov 2004 16:52:43 +0000 (16:52 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 1 Nov 2004 16:52:43 +0000 (16:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2893

coregrind/stage1.c
coregrind/ume.c
coregrind/vg_main.c
coregrind/vg_proxylwp.c

index 9a9eba675fc708bfc89561c4e3dc0d459dc7f47d..c52d66386eab4e20d0966ca17a0f154ceba6cb37 100644 (file)
@@ -115,7 +115,8 @@ static void *fix_auxv(void *v_init_esp, const struct exeinfo *info,
    seen = 0;
    for(; auxv->a_type != AT_NULL; auxv++) {
       if (0)
-        printf("doing auxv %p %4x: %d %p\n", auxv, auxv->a_type, auxv->u.a_val, auxv->u.a_ptr);
+        printf("doing auxv %p %4lld: %lld %p\n",
+                auxv, (ULong)auxv->a_type, (ULong)auxv->u.a_val, auxv->u.a_ptr);
 
       switch(auxv->a_type) {
       case AT_PHDR:
index 3ea44d0ffbcb294a7d177ffd3be4023dff9b8221..bc973a8bb2ae0bf7182a27702b456b87f466c177 100644 (file)
@@ -100,7 +100,7 @@ void foreach_map(int (*fn)(char *start, char *end,
       int ino;
       void *segstart, *segend;
 
-      sscanf(bufptr, "%p-%p %s %Lx %x:%x %d",
+      sscanf(bufptr, "%p-%p %s %llx %x:%x %d",
             &segstart, &segend, perm, &offset, &maj, &min, &ino);
       bufptr = strchr(bufptr, '\n');
       if (bufptr != NULL)
index cc1404fc45cc2e09472644c371f0d5ce900ff9b9..cbe991f4c93fba86aaa257730c0204d8ead64bab 100644 (file)
@@ -880,7 +880,7 @@ static char *copy_str(char **tab, const char *str)
    *cp++ = '\0';
 
    if (0)
-      printf("copied %p \"%s\" len %d\n", orig, orig, cp-orig);
+      printf("copied %p \"%s\" len %lld\n", orig, orig, (Long)(cp-orig));
 
    *tab = cp;
 
@@ -1128,7 +1128,7 @@ static Addr setup_client_stack(void* init_sp,
       default:
         /* stomp out anything we don't know about */
         if (0)
-           printf("stomping auxv entry %d\n", auxv->a_type);
+           printf("stomping auxv entry %lld\n", (ULong)auxv->a_type);
         auxv->a_type = AT_IGNORE;
         break;
         
@@ -1284,7 +1284,7 @@ static void load_tool( const char *toolname, void** handle_out,
               "  The major version numbers must match.\n",
               VG_CORE_INTERFACE_MAJOR_VERSION, 
               VG_CORE_INTERFACE_MINOR_VERSION,
-              sizeof(*toolinfo),
+              (Int)sizeof(*toolinfo),
               toolinfo->interface_major_version,
               toolinfo->interface_minor_version, 
               toolinfo->sizeof_ToolInfo);
index 3571c758e7c5f20b63163cc3f1d692b2816623c3..eded4e74d172b9284722832d151633ae0810f555 100644 (file)
@@ -1019,9 +1019,9 @@ static void sys_wait_results(Bool block, ThreadId tid, enum RequestType reqtype,
 
         case PX_RunSyscall:
            if (VG_(clo_trace_syscalls))
-              VG_(message)(Vg_DebugMsg, "sys_wait_results: got PX_RunSyscall for TID %d: syscall %d result %d",
+              VG_(message)(Vg_DebugMsg, "sys_wait_results: got PX_RunSyscall for TID %d: syscall %d result %lld",
                            res.tid, tst->syscallno,
-                            PLATFORM_SYSCALL_RET(tst->arch));
+                            (UWord)PLATFORM_SYSCALL_RET(tst->arch));
 
            if (tst->status != VgTs_WaitSys)
               VG_(printf)("tid %d in status %d\n",