usb: usbtmc: Support Read Status Byte with SRQ per file handle
Greg Kroah-Hartman
maintainerPATCH 2/12 usb: usbtmc: Support Read Status Byte with SRQ per file handle
Quoted 11 lines · Randy Dunlap
Quoted 8 lines · Greg KH
Review
Quoted 5 lines
(quoted diff) +5
-0+ file_data = kzalloc(sizeof(*file_data), GFP_KERNEL); + if (!file_data) + return -ENOMEM; + + pr_debug("%s - called\n", __func__);Please do not add "tracing" functions like this. The kernel has a wonderful built-in function tracing functionality, don't try to write your own. These lines should just be removed.
Quoted 1 line
but
pr_debug()works great withDYNAMIC_DEBUG.
Sure, but don't do that for "I made it to this function!" type calls. We have been ripping them out for a long time now, don't add new ones please.
Quoted 2 lines
Someone does not need to go all the way to tracing to get decent debug capability.
ftrace is not hard to use, it's even easier than dynamic_debug at times :)
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html