summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-04-02 17:37:58 +0900
committerGitHub <noreply@github.com>2020-04-02 17:37:58 +0900
commitb04d0e3157a8a0574d303f406f95ea2a67165012 (patch)
tree8bd584dda8108aa947dc45e9205c8bb940ec6d00
parente420ee62d89d5efab6ad7275910cb3eec8497da6 (diff)
downloadDLT-daemon-b04d0e3157a8a0574d303f406f95ea2a67165012.tar.gz
common: Fix uint64 type (#217)
The log message was printed as a signed value for uint64 type. This commit fixes to print as an unsigned value. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
-rw-r--r--src/shared/dlt_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 74c2b90..4ae0924 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3508,7 +3508,7 @@ DltReturnValue dlt_message_argument_print(DltMessage *msg,
#if defined (__WIN32__) && !defined(_MSC_VER)
snprintf(text, textlength, "%I64u", value64u);
#else
- snprintf(text, textlength, "%" PRId64, value64u);
+ snprintf(text, textlength, "%" PRIu64, value64u);
#endif
}