diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-04 11:11:16 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2018-12-04 11:11:16 +0100 |
| commit | efbea430fc5443e373606e3c9f79fa39388e6812 (patch) | |
| tree | 6fb8f7a7c08d92cb328a23eb298499436d00975b /src/debug.h | |
| parent | ca5d23276808b6b6c4d069e0ce77d776b5d93306 (diff) | |
| download | lilliput-ae-implem-efbea430fc5443e373606e3c9f79fa39388e6812.tar.xz | |
Réorganisation des traces
Diffstat (limited to 'src/debug.h')
| -rw-r--r-- | src/debug.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debug.h b/src/debug.h index c173f58..24b7787 100644 --- a/src/debug.h +++ b/src/debug.h @@ -57,11 +57,13 @@ 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 *suite, const char *vector_name) +static inline void debug_open_dump(const char *folder, const char *suite, const char *vector_name) { - size_t namelen = snprintf(NULL, 0, "results/traces-%s-%s.txt", suite, vector_name); + size_t namelen = snprintf( + NULL, 0, "%s/traces-%s-%s.txt", folder, suite, vector_name + ); char name[namelen+1]; - snprintf(name, sizeof(name), "results/traces-%s-%s.txt", suite, vector_name); + snprintf(name, sizeof(name), "%s/traces-%s-%s.txt", folder, suite, vector_name); DUMP = fopen(name, "w"); } |
