From: Martin Quinson Date: Sat, 4 Aug 2012 08:12:23 +0000 (+0200) Subject: make an error message marginally more understandable to the users X-Git-Tag: v3_8~207 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d7a3044c436f3e7a28abbbf06d28fab89b933010?hp=5572adcb6316b36ca4c10a9b004232f84865592a make an error message marginally more understandable to the users --- diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index 7fb8181f64..1f57a819ab 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -248,7 +248,7 @@ int smpi_sample_2(int global, const char *file, int line) char *loc = sample_location(global, file, line); local_data_t *data; - xbt_assert(samples, "You did something very inconsistent, didn't you?"); + xbt_assert(samples, "Y U NO use SMPI_SAMPLE_* macros? Stop messing directly with smpi_sample_* functions!"); data = xbt_dict_get_or_null(samples, loc); if (!data) { xbt_assert(data, "Please, do thing in order"); @@ -277,7 +277,7 @@ void smpi_sample_3(int global, const char *file, int line) local_data_t *data; double sample, n; - xbt_assert(samples, "You did something very inconsistent, didn't you?"); + xbt_assert(samples, "Y U NO use SMPI_SAMPLE_* macros? Stop messing directly with smpi_sample_* functions!"); data = xbt_dict_get_or_null(samples, loc); smpi_bench_end(); if(data && data->started && data->count < data->iters) {