diff options
author | Vo Trung Chi <chi.votrung@vn.bosch.com> | 2019-11-14 11:58:18 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2019-11-14 13:58:18 +0900 |
commit | 181fa112dd00021c834ebe85a38ab39834a2eb11 (patch) | |
tree | 5f98ee2ec0b269be76ed3ac0e97270194005ecf2 /include | |
parent | 6530fe75d8642f18d87d22456462a9530129cbda (diff) | |
download | DLT-daemon-181fa112dd00021c834ebe85a38ab39834a2eb11.tar.gz |
dlt-offline-trace: fix bug and hardcode (#174) (#186)
Fix the issue that DLT offline trace creating mutiple files
even after reaching MaxTrace size when filename is index based.
Related to: https://github.com/GENIVI/dlt-daemon/pull/174
Signed-off-by: Vo Trung Chi <chi.votrung@vn.bosch.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dlt/dlt_offline_trace.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/dlt/dlt_offline_trace.h b/include/dlt/dlt_offline_trace.h index 7fcca0f..d54e19c 100644 --- a/include/dlt/dlt_offline_trace.h +++ b/include/dlt/dlt_offline_trace.h @@ -60,15 +60,9 @@ #include "dlt_types.h" #define DLT_OFFLINETRACE_FILENAME_BASE "dlt_offlinetrace" -#define DLT_OFFLINETRACE_FILENAME_DELI "." +#define DLT_OFFLINETRACE_FILENAME_INDEX_DELI "." +#define DLT_OFFLINETRACE_FILENAME_TIMESTAMP_DELI "_" #define DLT_OFFLINETRACE_FILENAME_EXT ".dlt" -#define DLT_OFFLINETRACE_INDEX_MAX_SIZE 10 -#define DLT_OFFLINETRACE_FILENAME_TO_COMPARE "dlt_offlinetrace_" -/* "dlt_offlinetrace.4294967295.dlt" -> MAX 32byte include NULL terminate */ -#define DLT_OFFLINETRACE_FILENAME_MAX_SIZE (sizeof(DLT_OFFLINETRACE_FILENAME_BASE) + \ - sizeof(DLT_OFFLINETRACE_FILENAME_DELI) + \ - DLT_OFFLINETRACE_INDEX_MAX_SIZE + \ - sizeof(DLT_OFFLINETRACE_FILENAME_EXT) + 1) typedef struct { |