From d7a3044c436f3e7a28abbbf06d28fab89b933010 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 4 Aug 2012 10:12:23 +0200 Subject: [PATCH] make an error message marginally more understandable to the users --- src/smpi/smpi_bench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1