chiark / gitweb /
log: rework log_syntax_invalid_utf8() a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2018 12:13:02 +0000 (13:13 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:07 +0000 (07:50 +0200)
commit4b7bffd68186d4507df383502fae9c80868dda8d
tree919c5c016c389f2a08a41b042689e4d1b8f2bd21
parent36e85d4409a757442a6043b79815504234183143
log: rework log_syntax_invalid_utf8() a bit

The macro used utf8.h functions without including that. Let's clean this
up, by moving that code inside of log.c.

Let's also make the call return -EINVAL in all cases. This is in line
with log_oom() which also returns a well-defined error code even though
it doesn#t take one.
src/basic/log.c
src/basic/log.h