zlogger: ensure the timestamp always increases 66/282866/2
authorMateusz Majewski <m.majewski2@samsung.com>
Wed, 12 Oct 2022 12:16:33 +0000 (14:16 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Thu, 13 Oct 2022 14:39:07 +0000 (16:39 +0200)
commit17157a2dde88a5cea357c2b88acb328081b67f0d
tree913993d5219f62b744b39359e152388f1a857c6a
parent825a25ce348644290643fd5ddc8f852f308fe7c7
zlogger: ensure the timestamp always increases

The kernel guarantees that it won't decrease, but if function is
executed in quick repetition it might happen that we get the same value
twice in a row. This is unacceptable, since the timestamp is the only
thing we rely on in order to sort the messages.

Change-Id: I64e0255acede0af44a8510705f469e55cde6ca30
kernel/zlogger/zlogger.c