[Nut-upsuser] Maxxtro ups

Flavio sixdegreesoit at yahoo.it
Fri Oct 21 10:03:07 UTC 2005


Alle 18:26, giovedì 20 ottobre 2005, Charles Lepple ha scritto:
> > parm:           debug:Debug enabled or not
>
> have you tried the debug option?

I already tried with the original module and i'm now trying with the patched 
one. I do

# modprobe cypress_m8 debug=1

and that's what i get:

/var/log/syslog
Oct 21 11:34:44 localhost kernel: usbcore: registered new driver usbserial
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial 
support registered for Generic
Oct 21 11:34:44 localhost kernel: usbcore: registered new driver 
usbserial_generic
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial 
Driver core v2.0
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/cypress_m8.c: 
cypress_init
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial 
support registered for DeLorme Earthmate USB
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial 
support registered for HID->COM RS232 Adapter
Oct 21 11:34:44 localhost kernel: usbcore: registered new driver cypress
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/cypress_m8.c: Cypress USB 
to Serial Driver v1.09

/var/log/debug
Oct 21 11:34:44 localhost kernel: drivers/usb/serial/cypress_m8.c: 
cypress_init


I see that all functions in cypress_m8.c calls the dbg macro or the 
usb_serial_debug_data function which are both implemented using printk that 
should (I think) print to syslog or /var/log/debug; but the only one that 
seems to be called is cypress_init.
Note that the only difference in the output i get when modprobing without 
debug option is that single line in /var/log/debug.

Don't know if the following can be useful for you, but i also tried to load 
usbserial module with debug option on, and i got

# modprobe usbserial debug=1
</var/log/debug>
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the open usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the write usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the close usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the write_room usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the chars_in_buffer usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the read_bulk_callback usb serial operation with the generic one.
Oct 21 11:38:13 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the write_bulk_callback usb serial operation with the generic one.

#modprobe cypress_m8 debug=1
</var/log/debug>
Oct 21 11:38:55 localhost kernel: drivers/usb/serial/cypress_m8.c: 
cypress_init
Oct 21 11:38:55 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the read_bulk_callback usb serial operation with the generic one.
Oct 21 11:38:55 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the write_bulk_callback usb serial operation with the generic one.
Oct 21 11:38:55 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the read_bulk_callback usb serial operation with the generic one.
Oct 21 11:38:55 localhost kernel: drivers/usb/serial/usb-serial.c: Had to 
override the write_bulk_callback usb serial operation with the generic one.


Thank you very much,
Flavio

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it




More information about the Nut-upsuser mailing list