A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using logs
[simgrid.git]
/
src
/
surf
/
trace_mgr.c
diff --git
a/src/surf/trace_mgr.c
b/src/surf/trace_mgr.c
index
23dfafc
..
a518fb8
100644
(file)
--- a/
src/surf/trace_mgr.c
+++ b/
src/surf/trace_mgr.c
@@
-9,6
+9,9
@@
#include "trace_mgr_private.h"
#include <stdlib.h>
#include "trace_mgr_private.h"
#include <stdlib.h>
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(trace, surf,
+ "Logging specific to the SURF trace module");
+
static xbt_dict_t trace_list = NULL;
static void _tmgr_trace_free(void *trace)
{
static xbt_dict_t trace_list = NULL;
static void _tmgr_trace_free(void *trace)
{
@@
-51,8
+54,7
@@
tmgr_trace_t tmgr_trace_new(const char *filename)
/* Parsing et création de la trace */
if ((f = fopen(filename, "r")) == NULL) {
/* Parsing et création de la trace */
if ((f = fopen(filename, "r")) == NULL) {
- fprintf(stderr, "Cannot open file '%s'\n", filename);
- return NULL;
+ CRITICAL1("Cannot open file '%s'\n", filename);
}
trace = xbt_new0(s_tmgr_trace_t, 1);
}
trace = xbt_new0(s_tmgr_trace_t, 1);