Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

turn down the volume on some logging

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
russK
l33t
l33t
User avatar
Posts: 665
Joined: Tue Jun 27, 2006 3:44 am

turn down the volume on some logging

  • Quote

Post by russK » Sat Aug 21, 2010 1:44 pm

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

Code: Select all

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?
Top
Bapabooiee
n00b
n00b
User avatar
Posts: 25
Joined: Sun Oct 18, 2009 6:40 pm

  • Quote

Post by Bapabooiee » Sun Aug 22, 2010 1:31 pm

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: Select all

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.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy