summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@jp.adit-jv.com>2016-10-12 10:51:58 +0900
committerChristoph Lipka <clipka@jp.adit-jv.com>2016-10-24 13:39:55 +0900
commit5b8dc12fa357eb6bc121970628419971ccf3bde6 (patch)
treef86346b5c84a075fd61bc9d618f9b703c481bffc
parent54b4fee032c9a625282336d14a78fa068643d9d6 (diff)
downloadDLT-daemon-5b8dc12fa357eb6bc121970628419971ccf3bde6.tar.gz
Dlt-Receive: Use PRIxxx macros for printf variables
This change is done to remove compiler warnings. Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
-rw-r--r--src/console/dlt-receive.c5
1 files 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 <glob.h>
#include <syslog.h>
#include <linux/limits.h> /* for PATH_MAX */
+#include <inttypes.h>
#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);
}