Skip to contentSkip to conversation

usb: usbtmc: Support Read Status Byte with SRQ per file handle

PATCH Superseded Greg Kroah-Hartman 1 participant 1 message May 17, 2018 USB

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 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 with DYNAMIC_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