diff options
author | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2012-12-26 17:24:57 +0100 |
---|---|---|
committer | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2012-12-26 17:24:57 +0100 |
commit | be04fbcb73f347160c13d76492b51778b7c8f8fd (patch) | |
tree | 75be875de0598958f41e8b5a308f079bf1f77ca3 | |
parent | 661354e6cf4e19c9ca7210fbf49ce293e53418d1 (diff) | |
download | vdr-plugin-inputdev-be04fbcb73f347160c13d76492b51778b7c8f8fd.tar.gz vdr-plugin-inputdev-be04fbcb73f347160c13d76492b51778b7c8f8fd.tar.bz2 |
minor cosmetical + logging enhancements
-rw-r--r-- | inputdev.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; |