From 45ef403897cdd383a630c1500ebdf1cb34142498 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 4 Feb 2005 20:35:13 +0000 Subject: [PATCH 1/1] More verbose messages on errors git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@884 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xbt/context.c b/src/xbt/context.c index 67d95f75f9..bfaac45266 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -175,7 +175,8 @@ xbt_context_t xbt_context_new(xbt_context_function_t code, res = xbt_new0(s_xbt_context_t,1); - xbt_assert0(getcontext(&(res->uc))==0,"Error in context saving."); + /* FIXME: strerror is not thread safe */ + xbt_assert2(getcontext(&(res->uc))==0,"Error in context saving: %d (%s)", errno, strerror(errno)); res->code = code; res->uc.uc_link = NULL; -- 2.20.1