diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/system/dlt-system-journal.c | 4 |
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) |