diff options
Diffstat (limited to 'src/system/dlt-system-logfile.c')
-rw-r--r-- | src/system/dlt-system-logfile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system/dlt-system-logfile.c b/src/system/dlt-system-logfile.c index 8872d20..63c81b5 100644 --- a/src/system/dlt-system-logfile.c +++ b/src/system/dlt-system-logfile.c @@ -79,6 +79,7 @@ void send_file(LogFileOptions fileopt, int n) if(feof(pFile)) { DLT_LOG(context, DLT_LOG_INFO, DLT_INT(seq*-1), DLT_STRING(buffer)); + break; } else { DLT_LOG(context, DLT_LOG_INFO, DLT_INT(seq++), DLT_STRING(buffer)); @@ -86,6 +87,12 @@ void send_file(LogFileOptions fileopt, int n) } fclose(pFile); } + else + { + DLT_LOG(dltsystem, DLT_LOG_ERROR, + DLT_STRING("dlt-system-logfile, failed to open file."), + DLT_STRING(fileopt.Filename[n])); + } } void register_contexts(LogFileOptions fileopts) |