Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
turn down the volume on some logging
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 665

PostPosted: Sat Aug 21, 2010 1:44 pm    Post subject: turn down the volume on some logging Reply with quote

I get these in my log, I would like to filter them hopefullly without rebuilding the kernel:

Code:

Aug 21 09:43:59 ksp kernel: usb-storage: Bulk Status S 0x53425355 T 0x15ddc4 R 0 Stat 0x0
Aug 21 09:43:59 ksp kernel: usb-storage: -- Result from auto-sense is 0
Aug 21 09:43:59 ksp kernel: usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
Aug 21 09:43:59 ksp kernel: usb-storage: Not Ready: Medium not present
Aug 21 09:43:59 ksp kernel: usb-storage: scsi cmd done, result=0x2
Aug 21 09:43:59 ksp kernel: usb-storage: *** thread sleeping.
Aug 21 09:43:59 ksp kernel: usb-storage: queuecommand called
Aug 21 09:43:59 ksp kernel: usb-storage: *** thread awakened.
Aug 21 09:43:59 ksp kernel: usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
Aug 21 09:43:59 ksp kernel: usb-storage:  1e 00 00 00 00 00
Aug 21 09:43:59 ksp kernel: usb-storage: Bulk Command S 0x43425355 T 0x15ddc5 L 0 F 0 Trg 0 LUN 0 CL 6
Aug 21 09:43:59 ksp kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Aug 21 09:43:59 ksp kernel: usb-storage: Status code 0; transferred 31/31
Aug 21 09:43:59 ksp kernel: usb-storage: -- transfer complete


I use syslog-ng

Any hints?
Back to top
View user's profile Send private message
Bapabooiee
n00b
n00b


Joined: 18 Oct 2009
Posts: 25

PostPosted: Sun Aug 22, 2010 1:31 pm    Post subject: Reply with quote

If I recall correctly, you'll get that logspam if USB_DEBUG is set in your kernel options.

Go to your kernel source's menuconfig, and check if

Code:
Device Drivers --> USB support --> USB verbose debug messages

is set or not. If it is, unset it, recompile your kernel, and you should be golden.

But since you were looking to not recompile your kernel, it'd also probably be possible to filter that out using custom filter rules for syslog-ng. However, it might be difficult to do that, as the only common text between the messages is "usb-storage:", and I don't think you'd want to mask-out all USB storage-related information from your logs.

See the man page for syslog-ng.conf, and also check this page to get an idea of how to configure syslog-ng.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum