shl: log: check for trailing newlines
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 16 Mar 2013 15:06:54 +0000 (16:06 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 3 Nov 2013 11:24:55 +0000 (12:24 +0100)
commit4bcf5073022c2cefffb0bb51f95f1564e7e447be
tree8a9cecd3f291a5467a038580537cf5f31dc30eca
parent7e095d9db3674af91496838c0f3739dbf8ebc60a
shl: log: check for trailing newlines

If the format string contains a trailing newline, we now skip writing our
own. We also skip the fn+file information as it would be written on the
next line.

Trailing newlines occur only when forwarding messages from other
libraries. In this case we don't need the fn+file information, anyway.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/shl_log.c