[Logcheck-commits] Frédéric Brière : i.d.w/kernel: adjusted " USB HID" rule for newer kernels

Frédéric Brière fbriere-guest at alioth.debian.org
Fri Feb 19 02:52:57 UTC 2010


Module: logcheck
Branch: master
Commit: 368e53984538a27f7025e09e92f983c79b0f6640
URL:    http://git.debian.org/?p=logcheck/logcheck.git;a=commit;h=368e53984538a27f7025e09e92f983c79b0f6640

Author: Frédéric Brière <fbriere at fbriere.net>
Date:   Thu Feb 18 21:51:15 2010 -0500

i.d.w/kernel: adjusted "USB HID" rule for newer kernels

Somewhere between 2.6.26 and 2.6.29, the "USB HID" log line has changed.
Here's a sample of the new format:

  Jan 12 14:04:05 toroia kernel: [1732361.000141] generic-usb 0003:0D8C:000C.0003: input,hidraw0: USB HID v1.00 Device [HID 0d8c:000c] on usb-0000:00:07.3-1/input3

---

 debian/changelog                            |    1 +
 rulefiles/linux/ignore.d.workstation/kernel |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ba544c0..00187a5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -46,6 +46,7 @@ logcheck (1.3.7) UNRELEASED; urgency=low
     - usbhid no longer prints the source filename in its messages
     - allow ':' and arbitrary paths for input devices
     - adjusted "USB HID" rule to match generic devices
+    - adjusted "USB HID" rule for newer kernels
 
  -- Hannes von Haugwitz <hannes at vonhaugwitz.com>  Sun, 31 Jan 2010 20:13:27 +0100
 
diff --git a/rulefiles/linux/ignore.d.workstation/kernel b/rulefiles/linux/ignore.d.workstation/kernel
index 54d443e..637d8a7 100644
--- a/rulefiles/linux/ignore.d.workstation/kernel
+++ b/rulefiles/linux/ignore.d.workstation/kernel
@@ -77,7 +77,7 @@
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? (drivers/usb/input/hid-core.c|usbhid): v[\:[:digit:].]+USB HID core driver$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? drivers/usb/class/cdc-acm.c: v[\:[:digit:].]+USB Abstract Control Model driver for USB modems and ISDN adapters$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ input.agent\[[[:digit:]]+\]:[[:space:]]+((mouse|ts|ev|joy)dev|evbug): (already loaded|loaded successfully|blacklisted)$
-^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? input(,hidraw[[:digit:]]+)?: USB HID v[.[:digit:]]+ (Joystick|Keyboard|Mouse|Device) \[[ [:alnum:][:punct:]]+\] on usb-[\:[:xdigit:].-]+$
+^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? (generic-usb [.:[:xdigit:]]+: )?input(,hidraw[[:digit:]]+)?: USB HID v[.[:digit:]]+ (Joystick|Keyboard|Mouse|Device) \[[ [:alnum:][:punct:]]+\] on usb-[\:[:xdigit:].-]+(/input[[:digit:]]+)?$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? input: [-_/:[:alnum:][:space:]]+ as [-.:/[:alnum:]]+$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? input: AT Translated Set 2 keyboard on isa[[:digit:]]+/serio[[:digit:]]+$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ *[[:digit:]]+\.[[:digit:]]+\])? pl2303 [-:[:digit:].]+ PL-2303 converter detected$




More information about the Logcheck-commits mailing list