/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "simgrid_config.h" //For getline, keep that include first
+
#include "gras_config.h"
#include <errno.h>
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/str.h"
#include "xbt/replay_trace_reader.h"
-#include "simgrid_config.h" //For getline
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(replay,xbt,"Replay trace reader");
{
xbt_replay_trace_reader_t res = xbt_new0(s_xbt_replay_trace_reader_t,1);
res->fp = fopen(filename, "r");
- xbt_assert2(res->fp != NULL, "Cannot open %s: %s", filename,
+ xbt_assert(res->fp != NULL, "Cannot open %s: %s", filename,
strerror(errno));
res->filename = xbt_strdup(filename);
return res;