if (VG_(clo_verbosity) > 1) {
Int fd;
if (VG_(clo_log_to) != VgLogTo_Fd)
- VG_(message)(Vg_UserMsg, "");
- VG_(message)(Vg_UserMsg, "Valgrind library directory: %s", VG_(libdir));
- VG_(message)(Vg_UserMsg, "Command line");
+ VG_(message)(Vg_DebugMsg, "");
+ VG_(message)(Vg_DebugMsg, "Valgrind library directory: %s", VG_(libdir));
+ VG_(message)(Vg_DebugMsg, "Command line");
for (i = 0; i < VG_(client_argc); i++)
- VG_(message)(Vg_UserMsg, " %s", VG_(client_argv)[i]);
+ VG_(message)(Vg_DebugMsg, " %s", VG_(client_argv)[i]);
- VG_(message)(Vg_UserMsg, "Startup, with flags:");
+ VG_(message)(Vg_DebugMsg, "Startup, with flags:");
for (i = 1; i < vg_argc; i++) {
- VG_(message)(Vg_UserMsg, " %s", vg_argv[i]);
+ VG_(message)(Vg_DebugMsg, " %s", vg_argv[i]);
}
- VG_(message)(Vg_UserMsg, "Contents of /proc/version:");
+ VG_(message)(Vg_DebugMsg, "Contents of /proc/version:");
fd = VG_(open) ( "/proc/version", VKI_O_RDONLY, 0 );
if (fd < 0) {
- VG_(message)(Vg_UserMsg, " can't open /proc/version");
+ VG_(message)(Vg_DebugMsg, " can't open /proc/version");
} else {
#define BUF_LEN 256
Char version_buf[BUF_LEN];
vg_assert(n <= 256);
if (n > 0) {
version_buf[n-1] = '\0';
- VG_(message)(Vg_UserMsg, " %s", version_buf);
+ VG_(message)(Vg_DebugMsg, " %s", version_buf);
} else {
- VG_(message)(Vg_UserMsg, " (empty?)");
+ VG_(message)(Vg_DebugMsg, " (empty?)");
}
VG_(close)(fd);
#undef BUF_LEN
void VG_(symerr) ( Char* msg )
{
if (VG_(clo_verbosity) > 1)
- VG_(message)(Vg_UserMsg,"%s", msg );
+ VG_(message)(Vg_DebugMsg,"%s", msg );
}
}
if (VG_(clo_verbosity) > 1)
- VG_(message)(Vg_UserMsg, "Reading debug info from %s...", name);
+ VG_(message)(Vg_DebugMsg, "Reading debug info from %s...", name);
*size = stat_buf.st_size;
int res = VG_(munmap)((void*)addr, *size);
vg_assert(0 == res);
if (VG_(clo_verbosity) > 1)
- VG_(message)(Vg_UserMsg, "... CRC mismatch (computed %08x wanted %08x)", calccrc, crc);
+ VG_(message)(Vg_DebugMsg, "... CRC mismatch (computed %08x wanted %08x)", calccrc, crc);
return 0;
}
oimage = (Addr)NULL;
if (VG_(clo_verbosity) > 1)
- VG_(message)(Vg_UserMsg, "Reading syms from %s (%p)", si->filename, si->start );
+ VG_(message)(Vg_DebugMsg, "Reading syms from %s (%p)", si->filename, si->start );
/* mmap the object image aboard, so that we can read symbols and
line number info out of it. It will be munmapped immediately
VG_(close)(fd);
if (oimage == ((Addr)(-1))) {
- VG_(message)(Vg_UserMsg,
- "warning: mmap failed on %s", si->filename );
- VG_(message)(Vg_UserMsg,
- " no symbols or debug info loaded" );
+ VG_(message)(Vg_UserMsg, "warning: mmap failed on %s", si->filename );
+ VG_(message)(Vg_UserMsg, " no symbols or debug info loaded" );
return False;
}
}
if (VG_(clo_verbosity) > 1)
- VG_(message)(Vg_UserMsg,
+ VG_(message)(Vg_DebugMsg,
"discard syms at %p-%p in %s due to munmap()",
start, start+length, curr->filename ? curr->filename : (Char *)"???");