X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a11846627b7e46427494b079e4124a1e8a10e288..6cf3e5a62a7a4a685ddce69bac69d71fe0966a86:/src/xbt/backtrace_linux.c diff --git a/src/xbt/backtrace_linux.c b/src/xbt/backtrace_linux.c index 898069ab0c..d7e6d49292 100644 --- a/src/xbt/backtrace_linux.c +++ b/src/xbt/backtrace_linux.c @@ -80,7 +80,8 @@ void xbt_backtrace_current(xbt_ex_t * e) e->used = backtrace((void **) e->bt, XBT_BACKTRACE_SIZE); if (e->used == 0) { fprintf(stderr, "The backtrace() function failed, which probably means that the memory is exhausted. Here is a crude dump of the exception that I was trying to build:"); - fprintf(stderr, "%s:%s(%d) [%s:%d] %s", e->host,e->procname,e->pid, e->file,e->line,e->msg); + fprintf(stderr, "%s(%d) [%s:%d] %s", + e->procname, e->pid, e->file, e->line, e->msg); fprintf(stderr, "Bailing out now since there is nothing I can do without a decent amount of memory. Please go fix the memleaks\n"); exit(1); } @@ -116,7 +117,7 @@ void xbt_ex_setup_backtrace(xbt_ex_t * e) //FIXME: This code could be greatly im e->bt_strings = NULL; - if (xbt_binary_name != NULL) /* no binary name, nothing to do */ + if (xbt_binary_name == NULL) /* no binary name, nothing to do */ return; if (e->used <= 1)