summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>2020-07-02 17:13:48 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit82ab5cf22946bf417b9c89494e28e5ad615ff018 (patch)
treee97e62931dac33c90f5f1a4684d4c44b3c1b691f /src
parentd91211662cbc4a7e28cc43ccf879dcdab19292e0 (diff)
downloadDLT-daemon-82ab5cf22946bf417b9c89494e28e5ad615ff018.tar.gz
dlt-daemon.c: fix printf format %d to %ld that formats a long
Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'src')
-rw-r--r--src/daemon/dlt-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index cb9b7f0..a14de88 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -274,7 +274,7 @@ int option_file_parser(DltDaemonLocal *daemon_local)
#endif
if (n < 0 || (size_t)n > sizeof(daemon_local->flags.loggingFilename)) {
- dlt_vlog(LOG_WARNING, "%s: snprintf truncation/error(%d) %s\n",
+ dlt_vlog(LOG_WARNING, "%s: snprintf truncation/error(%ld) %s\n",
__func__, n, daemon_local->flags.loggingFilename);
}
@@ -1522,7 +1522,7 @@ void dlt_daemon_exit_trigger()
ssize_t n;
n = snprintf(tmp, DLT_PATH_MAX, "%s/dlt", dltFifoBaseDir);
if (n < 0 || (size_t)n > DLT_PATH_MAX) {
- dlt_vlog(LOG_WARNING, "%s: snprintf truncation/error(%d) %s\n",
+ dlt_vlog(LOG_WARNING, "%s: snprintf truncation/error(%ld) %s\n",
__func__, n, tmp);
}