On Wed, Apr 13, 2016 at 08:44:25AM +0200, Rafał Miłecki wrote: > Hi, > > I'm trying to debug some EHCI issue so I enabled debugging by adding > ccflags-y := -DDEBUG > to the drivers/usb/host/Makefile > > Some of debugging lines contain random memory, e.g.: > ehci-platform ehci-platform.0: .|��`|���5P5@�3�.��*�.|��o > > It's caused by dbg_status, dbg_cmd and dbg_port calling ehci_dbg even with: > # CONFIG_DYNAMIC_DEBUG > > The lack of above config implies using dummy dbg_status_buf, > dbg_command_buf and dbg_port_buf. They don't print anything to the > buffer and it stays uninitialized. > > Can you give me a hint how to solve this (apart from enabling > CONFIG_DYNAMIC_DEBUG for my debugging which I did)? Should dbg_*_buf > functions return some error instead of 0? We could check for that in > dbg_* functions then. Unfortunately I'm not sure how it's going to > affect other places, e.g. fill_registers_buffer. Please just enable CONFIG_DYNAMIC_DEBUG, as you did, that's the correct thing to do here, don't try to hack up Makefiles by hand. thanks, greg k-h -- 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