diff options
author | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2021-09-15 11:09:08 +0900 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-10-05 11:19:26 +0900 |
commit | 2e5c2e698b1c4a115f23ddf424c332e01aa910ab (patch) | |
tree | 667bfd5915bca250bc54c0d5c9525077751eb598 /src/lib | |
parent | 16749747cc5827b346b818a947b360c060d7667f (diff) | |
download | DLT-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.c | 4 |
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; } |