Skip to content

Commit

Permalink
pack: allow printing signed values for timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 24, 2024
1 parent 3722cc1 commit f57aa3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flb_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,7 @@ static int pack_print_fluent_record(size_t cnt, msgpack_unpacked result)
flb_time_pop_from_msgpack(&tms, &result, &obj);
flb_metadata_pop_from_msgpack(&metadata, &result, &obj);

fprintf(stdout, "[%zd] [%"PRIu32".%09lu, ", cnt,
(uint32_t) tms.tm.tv_sec, tms.tm.tv_nsec);
fprintf(stdout, "[%zd] [%"PRId32".%09lu, ", cnt, (int32_t) tms.tm.tv_sec, tms.tm.tv_nsec);

msgpack_object_print(stdout, *metadata);

Expand Down

0 comments on commit f57aa3e

Please sign in to comment.