From 5b8dc12fa357eb6bc121970628419971ccf3bde6 Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Wed, 12 Oct 2016 10:51:58 +0900 Subject: Dlt-Receive: Use PRIxxx macros for printf variables This change is done to remove compiler warnings. Signed-off-by: Christoph Lipka --- src/console/dlt-receive.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/console/dlt-receive.c b/src/console/dlt-receive.c index ad8228b..c10fab0 100644 --- a/src/console/dlt-receive.c +++ b/src/console/dlt-receive.c @@ -78,6 +78,7 @@ #include #include #include /* for PATH_MAX */ +#include #include "dlt_client.h" @@ -196,7 +197,7 @@ int64_t convert_arg_to_byte_size(char * arg) if (min_size > result) { char tmp[256]; - snprintf(tmp, 256, "ERROR: Specified limit: %li is smaller than a the size of a single message: %li !\n", result, min_size); + snprintf(tmp, 256, "ERROR: Specified limit: %" PRId64 "is smaller than a the size of a single message: %" PRId64 "!\n", result, min_size); dlt_log(LOG_ERR, tmp); result = -2; } @@ -494,7 +495,7 @@ int main(int argc, char* argv[]) if (dltdata.climit > -1) { char tmp[256]; - snprintf(tmp, 256, "Using file size limit of %li bytes\n", dltdata.climit); + snprintf(tmp, 256, "Using file size limit of %" PRId64 "bytes\n", dltdata.climit); dlt_log(LOG_INFO, tmp); dltdata.ohandle = dlt_receive_open_output_file(&dltdata); } -- cgit v1.2.1