]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/log.c
basic/log: expose log_dispatch
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Apr 2017 16:52:54 +0000 (12:52 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Apr 2017 17:39:03 +0000 (13:39 -0400)
commit93484b4790e261ac3dab12cba5b20d33c74a9202
treececfdbf4b68b6258a3b929aaecf0f67fac8f1033
parentba360bb05ce9b0bb86821fcdfebf66ccd9f7efd5
basic/log: expose log_dispatch

This is useful when we want to avoid printf formatting on the message.
It's nicer than using log_struct with "%s" as the format, because printf
is slow and with a large message (like from a backtrace) this would require
extra unnecessary memory.

I'm not exposing all the fields in the wrapper: only level and errno.
Those are the most likely to be useful.
src/basic/log.c
src/basic/log.h