logger: flush remaining data from stdio writers on file release
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 13 Jul 2021 09:47:15 +0000 (11:47 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Wed, 14 Jul 2021 10:35:43 +0000 (12:35 +0200)
commitd97fec48acf2040d9a9419a864c2789f5569b069
tree60ca354cf21f88b311d52974752ba7b44f84861b
parentdfdbb7d95cefc178ddb4d9f07b68f1b68e6fa5c8
logger: flush remaining data from stdio writers on file release

Unlike logs from regular writers, logs from stdio writers are not
contained in a single write_iter call: if the last character written in
the call is not a newline, some of the input remains in the buffer for
the next write_iter call. This means that some data might remain in the
buffer during release, and such data has to be flushed; otherwise, it
would be lost.

Change-Id: I13c9dc020967fe8ef3fbcd52d45f85b8725d3c2c
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
kernel/logger.c