chiark / gitweb /
sd-event: improve debugging of event source errors
authorDaniel Mack <daniel@zonque.org>
Mon, 21 Dec 2015 12:03:24 +0000 (13:03 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:14 +0000 (15:22 +0200)
commit3e12c3740726944df0251617fa165e464fafba21
tree45ca8759020437cbf2b3f32c47538f8dd7c51d85
parentd3ec6a978b077ed6ba154fe802703445ba51b64e
sd-event: improve debugging of event source errors

Printing the pointer variable really doesn't help, so drop that.

Instead, add a string lookup table for the EventSourceType enum, and print
the type of event source in case of errors.
src/libelogind/sd-event/sd-event.c