summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2012-12-26 17:24:57 +0100
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2012-12-26 17:24:57 +0100
commitbe04fbcb73f347160c13d76492b51778b7c8f8fd (patch)
tree75be875de0598958f41e8b5a308f079bf1f77ca3
parent661354e6cf4e19c9ca7210fbf49ce293e53418d1 (diff)
downloadvdr-plugin-inputdev-be04fbcb73f347160c13d76492b51778b7c8f8fd.tar.gz
vdr-plugin-inputdev-be04fbcb73f347160c13d76492b51778b7c8f8fd.tar.bz2
minor cosmetical + logging enhancements
-rw-r--r--inputdev.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/inputdev.c b/inputdev.c
index 4802305..4731996 100644
--- a/inputdev.c
+++ b/inputdev.c
@@ -51,9 +51,6 @@ public:
~cInputDevice();
virtual int Compare(cInputDevice const &b) const {
- isyslog("Compare(%s, %s) -> %04lx - %04lx\n",
- get_dev_path(), b.get_dev_path(),
- dev_t_, b.dev_t_);
return this->dev_t_ - b.dev_t_;
}
@@ -219,7 +216,6 @@ bool cInputDevice::open(void)
goto err;
}
-
description[sizeof description - 1] = '\0';
this->dev_t_ = st.st_rdev;
@@ -300,6 +296,12 @@ void cInputDevice::handle(void)
// ignore events which are no valid key events
return;
+ dsyslog("%s: event{%s}=[%lu.%06u, %02x, %04x, %d]\n",
+ controller_.plugin_name(), get_dev_path(),
+ (unsigned long)(ev.time.tv_sec),
+ (unsigned int)(ev.time.tv_usec),
+ ev.type, ev.code, ev.value);
+
switch (ev.type) {
case EV_KEY:
is_valid = true;