summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>2020-10-27 15:35:51 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-01-06 09:27:28 +0900
commit906578850094f8f5e9ce488c71ad831b2f35330c (patch)
tree90403e585db0470fe67ac9d2c677f772d3c12468 /include
parent7e7ae6dbb5579c2e163d87ff7bcc774de459b96b (diff)
downloadDLT-daemon-906578850094f8f5e9ce488c71ad831b2f35330c.tar.gz
library: fix conversion warnings
- Change the data type of variable 'size' in DltContextData struct (dlt_user.h.in). Variable 'size' was used repeated with function 'sizeof()' many time, so change type to 'size_t' can avoid a lot of warnings. - Adding temporary variable to calculate the datasize header (define in dlt_common.h) in 'dlt_common.c' file. Signed-off-by: Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_user.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dlt/dlt_user.h.in b/include/dlt/dlt_user.h.in
index d0c60b2..e4b2c5a 100644
--- a/include/dlt/dlt_user.h.in
+++ b/include/dlt/dlt_user.h.in
@@ -129,7 +129,7 @@ typedef struct
{
DltContext *handle; /**< pointer to DltContext */
unsigned char *buffer; /**< buffer for building log message*/
- int32_t size; /**< payload size */
+ size_t size; /**< payload size */
int32_t log_level; /**< log level */
int32_t trace_status; /**< trace status */
int32_t args_num; /**< number of arguments for extended header*/