X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0bb15d22417c0691dafb9e369eea3564e0cfae7b..d5a1db1d0b268cb9ed8f37246fd970fce7631943:/include/xbt/sysdep.h diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 282eba888a..d05639b575 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -95,8 +95,7 @@ void *xbt_malloc(size_t n) res = malloc(n); if (!res) - xbt_die(bprintf("Memory allocation of %lu bytes failed", - (unsigned long)n)); + xbt_die("Memory allocation of %lu bytes failed", (unsigned long)n); return res; } @@ -109,8 +108,7 @@ void *xbt_malloc0(size_t n) //if (n==0) xbt_die("calloc(0) is not portable"); res = calloc(n, 1); if (!res) - xbt_die(bprintf("Memory callocation of %lu bytes failed", - (unsigned long)n)); + xbt_die("Memory callocation of %lu bytes failed", (unsigned long)n); return res; } @@ -125,8 +123,7 @@ void *xbt_realloc(void *p, size_t s) if (p) { res = realloc(p, s); if (!res) - xbt_die(bprintf("memory (re)allocation of %lu bytes failed", - (unsigned long)s)); + xbt_die("memory (re)allocation of %lu bytes failed", (unsigned long)s); } else { res = xbt_malloc(s); }