Various debug spew

This commit is contained in:
Søren Sandmann Pedersen
2009-09-07 21:22:48 -04:00
parent d34a1cf460
commit 29e270cb8d
2 changed files with 14 additions and 6 deletions

View File

@ -237,7 +237,8 @@ on_read (gpointer data)
/* FIXME: return proper errors */
#define fail(x) \
do { \
g_printerr ("the fail is strong %s\n", x); \
g_printerr ("the fail is "); \
perror (x); \
exit (-1); \
} while (0)
@ -404,6 +405,8 @@ collector_new (CollectorFunc callback,
static void
process_mmap (Collector *collector, mmap_event_t *mmap)
{
g_print ("%d %d => %s at %llx\n", mmap->pid, mmap->tid, mmap->filename, mmap->addr);
tracker_add_map (collector->tracker,
mmap->pid,
mmap->addr,