From cc4d1e04fe4a8b57b137c347ad9fd66166b6250a Mon Sep 17 00:00:00 2001 From: Radek Kaczorowski Date: Tue, 5 Oct 2021 04:04:24 +0200 Subject: fix malformed printf format strings (#295) Co-authored-by: Saya Sugiura <39760799+ssugiura@users.noreply.github.com> --- src/offlinelogstorage/dlt_offline_logstorage_behavior.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/offlinelogstorage') 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); -- cgit v1.2.1