]> git.ipfire.org Git - thirdparty/suricata.git/commit
output: fix timestamp missing usecs
authorVictor Julien <vjulien@oisf.net>
Fri, 18 Feb 2022 09:19:04 +0000 (10:19 +0100)
committerJeff Lucovsky <jeff@lucovsky.org>
Fri, 11 Mar 2022 14:03:32 +0000 (09:03 -0500)
commit3ef87695dfe9685ded7fe44f45376294230525c8
treef6a1566c257f6cecd0de172cff1c46c098ae3ac7
parentabd022a1ac1962839b0a62c8928c739b42b3e4f8
output: fix timestamp missing usecs

On ARM 32bit with Musl `tv_usecs` is defined as `int64_t` which lead to
CreateIsoTimeString() printing all zeros on the usecs. Work around this
by first assigning to a `int64_t` and then updating the expected format
string to accept `int64_t`.

Bug: #5094.
(cherry picked from commit a0c0471f1f51af0171ed5df1e2de0b900651bc19)
src/util-time.c