| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-04 12:48:01 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-04 12:48:01 +0200 |
| commit | dc75c584513dfd746f9819891c2eb6e77bfdf1ad (patch) | |
| tree | 577d5f9ef7fbc43a5873492d386808518d845d94 /src/input.c | |
| parent | 385a3d17995dafde4f2b57f8d3a42d4d4782119d (diff) | |
Better debug options, better string comparisons.
Diffstat (limited to 'src/input.c')
| -rw-r--r-- | src/input.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 |


