VG_(snprintf)(filename, filename_size, "%s%s.%d",
basename, coreext, VG_(getpid)());
else
- VG_(snprintf)(filename, filename_size, "%s%s.%d.%d",
+ VG_(snprintf)(filename, filename_size, "%s%s.%d.%u",
basename, coreext, VG_(getpid)(), seq);
seq++;
if (VG_(clo_verbosity) > 1)
VG_(message)(Vg_DebugMsg,
" .. build-id mismatch (found %s wanted %s)\n",
- debug_buildid, buildid);
+ (debug_buildid ? debug_buildid : "(null)"), buildid);
ML_(dinfo_free)(debug_buildid);
return NULL;
}
szB = VG_PGROUNDUP(szB);
VG_(debugLog)(1, "initimg",
- "Setup client stack: size will be %ld\n", szB);
+ "Setup client stack: size will be %lu\n", szB);
iifii.clstack_max_size = szB;
iifii.initial_client_SP = setup_client_stack(init_sp, env, &info,
if (tst->os_state.ustack
&& VG_(am_is_valid_for_client)((Addr)tst->os_state.ustack,
sizeof(*tst->os_state.ustack),
- VKI_PROT_WRITE))
+ VKI_PROT_WRITE)) {
*tst->os_state.ustack = uc->uc_stack;
VG_TRACK(post_mem_write, part, tid, (Addr)&tst->os_state.ustack,
sizeof(tst->os_state.ustack));
+ }
}
/* Restore the architecture-specific part of the context. */