From: Arnaud Giersch Date: Thu, 24 Oct 2013 15:29:46 +0000 (+0200) Subject: Add name of failing function in error message. X-Git-Tag: v3_10_rc1~77 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a2353aa2adcad3e41130c0fea5090b048cf94a64?hp=53dd25b9ed24cc22b4d9e5d2ab0814413afce442 Add name of failing function in error message. --- diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 6feda0fcd4..70f5bbbdc8 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -397,7 +397,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line) case EEXIST: xbt_die("Please cleanup /dev/shm/%s", loc); default: - xbt_die("An unhandled error occured while opening %s: %s", loc, strerror(errno)); + xbt_die("An unhandled error occured while opening %s. shm_open: %s", loc, strerror(errno)); } } data = xbt_new(shared_data_t, 1); @@ -406,7 +406,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line) data->loc = loc; mem = shm_map(fd, size, data); if (shm_unlink(loc) < 0) { - XBT_WARN("Could not early unlink %s: %s", loc, strerror(errno)); + XBT_WARN("Could not early unlink %s. shm_unlink: %s", loc, strerror(errno)); } xbt_dict_set(allocs, loc, data, NULL); XBT_DEBUG("Mapping %s at %p through %d", loc, mem, fd);