]> git.ipfire.org Git - thirdparty/systemd.git/commit
log: rework log_syntax_invalid_utf8() a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2018 12:13:02 +0000 (13:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jan 2018 13:44:31 +0000 (14:44 +0100)
commitd04ce5a9c4a91a86786eedd947822b23b689dd67
tree4952e61deca64ef1d000291f04e9c20dd6ef4466
parenta6ab236595b07f98f7e942093bfe4b453c4141cb
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