summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorLutz Helwing <lutz_helwing@mentor.com>2015-12-07 14:38:49 +0100
committerLutz Helwing <lutz_helwing@mentor.com>2015-12-07 15:21:22 +0100
commit98ab520a0d3a36f4a7cfa081742f5aef1f411bf0 (patch)
tree61b566eb283948c37da9bc2b308ca706d89a0aae /src/system
parent86fa115e9e49541b9e15813c33e9940065e2d6e1 (diff)
downloadDLT-daemon-98ab520a0d3a36f4a7cfa081742f5aef1f411bf0.tar.gz
Fixed compiler warnings about format issues in dlt-system-journal.c by replacing llu with PRIu64
Diffstat (limited to 'src/system')
-rw-r--r--src/system/dlt-system-journal.c4
1 files changed, 2 insertions, 2 deletions
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)