Skip to content

Commit 3eacc86

Browse files
committed
out_stdout: handle after 2038 timestamps
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent d6e209d commit 3eacc86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/out_stdout/stdout.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <cprofiles/cprof_decode_msgpack.h>
3535

3636
#include <msgpack.h>
37+
#include <inttypes.h>
3738
#include "stdout.h"
3839

3940

@@ -300,7 +301,7 @@ static void cb_stdout_flush(struct flb_event_chunk *event_chunk,
300301

301302
printf("[%zd] %s: [[", cnt++, event_chunk->tag);
302303

303-
printf("%"PRId32".%09lu, ", (int32_t) log_event.timestamp.tm.tv_sec,
304+
printf("%"PRId64".%09lu, ", (int64_t) log_event.timestamp.tm.tv_sec,
304305
log_event.timestamp.tm.tv_nsec);
305306

306307
msgpack_object_print(stdout, *log_event.metadata);

0 commit comments

Comments
 (0)