Skip to content

Commit c13178d

Browse files
logstorage: fix sync cache to log file error (#587)
Co-authored-by: nad8hc <[email protected]>
1 parent 543087b commit c13178d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/offlinelogstorage/dlt_offline_logstorage_behavior.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ DLT_STATIC int dlt_logstorage_sync_to_file(DltLogStorageFilterConfig *config,
985985
if ((start_index >= 0) && (end_index > start_index) &&
986986
(count > 0) && (count <= remain_file_size))
987987
{
988-
dlt_logstorage_write_to_log((uint8_t*)config->cache + start_offset + start_index, count, 1, config);
988+
ret = dlt_logstorage_write_to_log((uint8_t*)config->cache + start_offset + start_index, count, 1, config);
989989
dlt_logstorage_check_write_ret(config, ret);
990990

991991
/* Close log file */

0 commit comments

Comments
 (0)