logprint: implement log_print_log_line() 57/242157/5
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 7 Aug 2020 07:40:10 +0000 (09:40 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Fri, 28 Aug 2020 06:19:23 +0000 (08:19 +0200)
commita43afb364f58abebe6ad14258f3e580381bd4d25
tree1798451da5c6e626debe04056b537db0d7939846
parente7aa8a06f7d400a494f06cf51dbce6a69757b5c5
logprint: implement log_print_log_line()

A brand new, clean room implementation of log_print_log_line()
made with the specification consisting of the existing tests,
and a bit of the other existing code, but not the old implementation
of log_print_log_line().

There was one additional change: "inline warning". Initially it was printed
sometimes with its own copy of log metadata, sometimes without it.
Now, it's consistent with the printing format: the warning gets
its own metadata only if separate lines in logs get their own metadata.

Change-Id: I93f3b7864854a6a988a9ae02743df54ad46a37fe
src/shared/logprint.c
src/tests/logprint.c