summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 14:01:28 +0100
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2018-11-28 14:01:28 +0100
commit9340aecfff9a812c65debc648f0cb79d78d4109c (patch)
treeb98e75f41791fa39be9bc7c3cf2437e83bc13fab /src/debug.h
parent98a7cb6d80f4151aebf6c1c0e76a2e9a22ab6e57 (diff)
downloadlilliput-ae-implem-9340aecfff9a812c65debc648f0cb79d78d4109c.tar.xz
Ajout de mécanique pour générer des traces plus facilement
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.h b/src/debug.h
index c7fa343..c25aeb1 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -60,11 +60,11 @@ static inline void debug_dump_buffer(const char *header, size_t len, const uint8
fprintf(DUMP, "\n");
}
-static inline void debug_open_dump(const char *vector_name)
+static inline void debug_open_dump(const char *suite, const char *vector_name)
{
- size_t namelen = snprintf(NULL, 0, "/tmp/test-%s.txt", vector_name);
+ size_t namelen = snprintf(NULL, 0, "results/traces-%s-%s.txt", suite, vector_name);
char name[namelen+1];
- snprintf(name, sizeof(name), "/tmp/test-%s.txt", vector_name);
+ snprintf(name, sizeof(name), "results/traces-%s-%s.txt", suite, vector_name);
DUMP = fopen(name, "w");
}