X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41a0af5d6003337f4ca3b3aed6f5757293bddab5..c3a022946c0849d8b4ffdb81fae65db33554cf7f:/src/surf/surfxml_parse.c diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 785a41d24e..c8d2f0cfba 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -168,8 +168,12 @@ void ETag_surfxml_argument(void) } void surf_parse_open(const char *file) { + static int warned = 0; /* warn only once */ if(!file) { - WARN0("I hope you know what you're doing... you just gave me a NULL pointer!"); + if (!warned) { + WARN0("Bypassing the XML parser since surf_parse_open received a NULL pointer. If it is not what you want, go fix your code."); + warned = 1; + } return; } if(!surf_input_buffer_stack)