diff options
author | Radek Kaczorowski <kaczor72@gmail.com> | 2021-10-05 04:04:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 11:04:24 +0900 |
commit | cc4d1e04fe4a8b57b137c347ad9fd66166b6250a (patch) | |
tree | 2d5cb2e61c3c736e38a16ef70545b69fcc249cf7 /src/offlinelogstorage | |
parent | 3b339d73aec2a23d45f35b84f2097d63b868dd96 (diff) | |
download | DLT-daemon-cc4d1e04fe4a8b57b137c347ad9fd66166b6250a.tar.gz |
fix malformed printf format strings (#295)
Co-authored-by: Saya Sugiura <39760799+ssugiura@users.noreply.github.com>
Diffstat (limited to 'src/offlinelogstorage')
-rw-r--r-- | src/offlinelogstorage/dlt_offline_logstorage_behavior.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c index 9c121e0..35d8306 100644 --- a/src/offlinelogstorage/dlt_offline_logstorage_behavior.c +++ b/src/offlinelogstorage/dlt_offline_logstorage_behavior.c @@ -491,7 +491,7 @@ int dlt_logstorage_open_log_file(DltLogStorageFilterConfig *config, strcat(absolute_file_path, config->working_file_name); dlt_vlog(LOG_DEBUG, - "%s: Number of log files-newest file-wrap_id [%d]-[%s]-[%d]\n", + "%s: Number of log files-newest file-wrap_id [%u]-[%s]-[%u]\n", __func__, num_log_files, config->working_file_name, config->wrap_id); @@ -542,14 +542,14 @@ int dlt_logstorage_open_log_file(DltLogStorageFilterConfig *config, remove(absolute_file_path); num_log_files -= 1; dlt_vlog(LOG_DEBUG, - "%s: Remove '%s' (num_log_files: %d, config->num_files:%d)\n", + "%s: Remove '%s' (num_log_files: %u, config->num_files:%u)\n", __func__, absolute_file_path, num_log_files, config->num_files); } config->log = fopen(absolute_file_path, "a+"); dlt_vlog(LOG_DEBUG, - "%s: Filename and Index after updating [%s]-[%d]\n", + "%s: Filename and Index after updating [%s]-[%u]\n", __func__, file_name, idx); /* Add file to file list */ @@ -577,7 +577,7 @@ int dlt_logstorage_open_log_file(DltLogStorageFilterConfig *config, strcat(absolute_file_path, storage_path); strcat(absolute_file_path, (*head)->name); dlt_vlog(LOG_DEBUG, - "%s: Remove '%s' (num_log_files: %d, config->num_files:%d)\n", + "%s: Remove '%s' (num_log_files: %u, config->num_files:%u)\n", __func__, absolute_file_path, num_log_files, config->num_files); remove(absolute_file_path); |