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
[trace] fix SimDag tracing
[simgrid.git]
/
src
/
instr
/
instr_simdag.c
diff --git
a/src/instr/instr_simdag.c
b/src/instr/instr_simdag.c
index
198098b
..
668b3a7
100644
(file)
--- a/
src/instr/instr_simdag.c
+++ b/
src/instr/instr_simdag.c
@@
-8,22
+8,13
@@
#ifdef HAVE_TRACING
#ifdef HAVE_TRACING
-void TRACE_sd_task_create(SD_task_t task)
-{
- task->category = NULL;
-}
-
-void TRACE_sd_task_destroy(SD_task_t task)
-{
- xbt_free(task->category);
-}
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simdag, instr, "Tracing SimDAG");
void TRACE_sd_set_task_category(SD_task_t task, const char *category)
{
void TRACE_sd_set_task_category(SD_task_t task, const char *category)
{
- if (!
IS_TRACING
)
+ if (!
TRACE_is_enabled()
)
return;
return;
- task->category = xbt_new(char, strlen(category) + 1);
- strcpy(task->category, category);
+ task->category = xbt_strdup (category);
}
#endif /* HAVE_TRACING */
}
#endif /* HAVE_TRACING */