Fill the seconds field of invalid timestamps 68/214268/4
authorMateusz Majewski <m.majewski2@samsung.com>
Thu, 19 Sep 2019 10:53:08 +0000 (12:53 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Thu, 19 Sep 2019 13:16:00 +0000 (15:16 +0200)
commite8bdf352482395707cbc0061c5c1d34984f16d0b
treea0fab14fdc3d0f440a320bd3143e49ce22120d5e
parent4fcbd9898b7c50af4834d753895dc10616eaa039
Fill the seconds field of invalid timestamps

We used to fill only nsec with -1. However, this means that the sec
field is kept uninitialized. This means that reading it would be
undefined behavior, which is bad. This doesn't seem to happen in
dlogutil as is, but it would be possible when choosing a timestamp to sort
on is be implemented.

Also, a slight change to sort vector is done so that it works well in
such situation.

Change-Id: I501adad093c0782433d014395e8cc752f7d48574
include/queued_entry.h
src/shared/fdi_logger.c
src/shared/logprint.c
src/shared/queued_entry.c
src/shared/queued_entry_timestamp.c
src/shared/sort_vector.c