From dc75c584513dfd746f9819891c2eb6e77bfdf1ad Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 4 Sep 2015 12:48:01 +0200 Subject: Better debug options, better string comparisons. --- src/input.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/input.c') diff --git a/src/input.c b/src/input.c index a3b9e15..05484ae 100644 --- a/src/input.c +++ b/src/input.c @@ -85,6 +85,8 @@ int relabsd_input_open const struct relabsd_config * const conf ) { + RELABSD_S_DEBUG(RELABSD_DEBUG_PROGRAM_FLOW, "Opening input device..."); + input->fd = open(conf->input_file, O_RDONLY); if (input->fd < 0) @@ -126,6 +128,8 @@ int relabsd_input_open void relabsd_input_close (const struct relabsd_input * const input) { + RELABSD_S_DEBUG(RELABSD_DEBUG_PROGRAM_FLOW, "Closing input device..."); + libevdev_free(input->dev); close(input->fd); } @@ -166,8 +170,8 @@ int relabsd_input_read RELABSD_DEBUG ( - 90, - "[INPUT] Valid event received: {type = %s; code = %s; value = %d}.", + RELABSD_DEBUG_REAL_EVENTS, + "Valid event received: {type = %s; code = %s; value = %d}.", libevdev_event_type_get_name(event.type), libevdev_event_code_get_name(event.type, event.code), event.value -- cgit v1.2.3-70-g09d2