From 98ab520a0d3a36f4a7cfa081742f5aef1f411bf0 Mon Sep 17 00:00:00 2001 From: Lutz Helwing Date: Mon, 7 Dec 2015 14:38:49 +0100 Subject: Fixed compiler warnings about format issues in dlt-system-journal.c by replacing llu with PRIu64 --- src/system/dlt-system-journal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system') diff --git a/src/system/dlt-system-journal.c b/src/system/dlt-system-journal.c index c336bf5..52e1554 100644 --- a/src/system/dlt-system-journal.c +++ b/src/system/dlt-system-journal.c @@ -175,7 +175,7 @@ void dlt_system_journal_get_timestamp(sd_journal *journal, MessageTimestamp *tim timeinfo = localtime((const time_t*) (&time_secs)); strftime(buffer_realtime_formatted, sizeof(buffer_realtime_formatted), "%Y/%m/%d %H:%M:%S", timeinfo); - snprintf(timestamp->real, sizeof(timestamp->real), "%s.%06llu", buffer_realtime_formatted, time_usecs % 1000000); + snprintf(timestamp->real, sizeof(timestamp->real), "%s.%06"PRIu64, buffer_realtime_formatted, time_usecs % 1000000); /* Try to get monotonic time from message source and if not successful try to get monotonic time from journal entry */ @@ -200,7 +200,7 @@ void dlt_system_journal_get_timestamp(sd_journal *journal, MessageTimestamp *tim } } - snprintf(timestamp->monotonic, sizeof(timestamp->monotonic), "%llu.%06llu", time_usecs / 1000000, time_usecs % 1000000); + snprintf(timestamp->monotonic, sizeof(timestamp->monotonic), "%"PRIu64".%06"PRIu64, time_usecs / 1000000, time_usecs % 1000000); } void journal_thread(void *v_conf) -- cgit v1.2.1