Tuesday, April 22, 2008

More Verbose Output

One visible changes to the USB drivers in the latest kernel (2.6.25) is the information shown is more verbose than in the previous kernel. Currently, you will get more information about a product when it's connected via USB ports. Here's an example taken from dmesg output when i plugged in my USB flash disk on my computer:

usb 2-6: New USB device found, idVendor=0951, idProduct=1607
usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-6: Product: DataTraveler 2.0
usb 2-6: Manufacturer: Kingston
usb 2-6: SerialNumber: 200706200000000059188363

usb-storage: device found at 20
usb-storage: waiting for device to settle before scanning
scsi 16:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
sd 16:0:0:0: [sda] 7888896 512-byte hardware sectors (4039 MB)
sd 16:0:0:0: [sda] Write Protect is off
sd 16:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 16:0:0:0: [sda] Assuming drive cache: write through
sd 16:0:0:0: [sda] 7888896 512-byte hardware sectors (4039 MB)
sd 16:0:0:0: [sda] Write Protect is off
sd 16:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 16:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 16:0:0:0: [sda] Attached SCSI removable disk
sd 16:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete

The bold one are new information after i installed kernel 2.6.25 few days ago. It reveals more information about the vendor, serial number, device strings (for identifier) and also products name.