Re: usbcore in usb stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Madhukar G wrote:
> Hi All,
> 
> I'm using kernel version 2.6.28 for debugging USB stack for Mass
> Storage Device. I have added some debug messages in storage, host and
> core modules. When i compiled using "make modules", usbcore.ko was
> never created. Also, i found that usbcore.ko is not included in
> modules.dep file.
> 
> Is usbcore.ko merged with other modules. Also, the debug message which
> i added in core never appeared. How can i see the debug messages which
> are added in core?

No, it's built as a loadable module named usbcore.ko.  That works
for me on 2.6.28.

Are you sure that you loaded/ran the correct (modified) module?
You may need to use printk facility levels from include/linux/kernel.h:

#define	KERN_EMERG	"<0>"	/* system is unusable			*/
#define	KERN_ALERT	"<1>"	/* action must be taken immediately	*/
#define	KERN_CRIT	"<2>"	/* critical conditions			*/
#define	KERN_ERR	"<3>"	/* error conditions			*/
#define	KERN_WARNING	"<4>"	/* warning conditions			*/
#define	KERN_NOTICE	"<5>"	/* normal but significant condition	*/
#define	KERN_INFO	"<6>"	/* informational			*/
#define	KERN_DEBUG	"<7>"	/* debug-level messages			*/

and/or boot with ignore_loglevel on the kernel boot command line.
The latter will print all messages regardless of their log (facility) level.

~Randy


-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux