summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSaya Sugiura <ssugiura@jp.adit-jv.com>2021-09-15 11:09:08 +0900
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-10-05 11:19:26 +0900
commit2e5c2e698b1c4a115f23ddf424c332e01aa910ab (patch)
tree667bfd5915bca250bc54c0d5c9525077751eb598 /src/lib
parent16749747cc5827b346b818a947b360c060d7667f (diff)
downloadDLT-daemon-2e5c2e698b1c4a115f23ddf424c332e01aa910ab.tar.gz
lib: Fix wrong type alert from lgtm
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dlt_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 2f54023..cc6a21d 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -3878,7 +3878,7 @@ DltReturnValue dlt_user_log_send_log(DltContextData *log, int mtype)
/* Get file size */
struct stat st;
fstat(dlt_user.dlt_log_handle, &st);
- dlt_vlog(LOG_DEBUG, "%s: Current file size=[%d]\n", __func__,
+ dlt_vlog(LOG_DEBUG, "%s: Current file size=[%ld]\n", __func__,
st.st_size);
/* Check filesize */
@@ -3888,7 +3888,7 @@ DltReturnValue dlt_user_log_send_log(DltContextData *log, int mtype)
if (msg_size > dlt_user.filesize_max) {
dlt_user_file_reach_max = true;
dlt_vlog(LOG_ERR,
- "%s: File size (%d bytes) reached to defined maximum size (%d bytes)\n",
+ "%s: File size (%ld bytes) reached to defined maximum size (%d bytes)\n",
__func__, st.st_size, dlt_user.filesize_max);
return DLT_RETURN_FILESZERR;
}