[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: [PATCH] USB speedtouch: extra debug messages
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2003-09-30 23:44:52
[Download RAW message or body]
ChangeSet 1.1342.8.62, 2003/09/30 16:44:52-07:00, baldrick@free.fr
[PATCH] USB speedtouch: extra debug messages
# This patch includes the following deltas:
# ChangeSet 1.1342.8.61 -> 1.1342.8.62
# drivers/usb/misc/speedtch.c 1.98 -> 1.99
#
speedtch.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff -Nru a/drivers/usb/misc/speedtch.c b/drivers/usb/misc/speedtch.c
--- a/drivers/usb/misc/speedtch.c Fri Oct 3 18:06:07 2003
+++ b/drivers/usb/misc/speedtch.c Fri Oct 3 18:06:07 2003
@@ -883,8 +883,10 @@
return -EINVAL;
/* only support AAL5 */
- if ((vcc->qos.aal != ATM_AAL5) || (vcc->qos.rxtp.max_sdu < 0) || \
(vcc->qos.rxtp.max_sdu > ATM_MAX_AAL5_PDU)) + if ((vcc->qos.aal != ATM_AAL5) || \
(vcc->qos.rxtp.max_sdu < 0) || (vcc->qos.rxtp.max_sdu > ATM_MAX_AAL5_PDU)) { + dbg \
("udsl_atm_open: unsupported ATM type %d!", vcc->qos.aal); return -EINVAL;
+ }
if (!instance->firmware_loaded) {
dbg ("udsl_atm_open: firmware not loaded!");
@@ -894,11 +896,13 @@
down (&instance->serialize); /* vs self, udsl_atm_close */
if (udsl_find_vcc (instance, vpi, vci)) {
+ dbg ("udsl_atm_open: %hd/%d already in use!", vpi, vci);
up (&instance->serialize);
return -EADDRINUSE;
}
if (!(new = kmalloc (sizeof (struct udsl_vcc_data), GFP_KERNEL))) {
+ dbg ("udsl_atm_open: no memory for vcc_data!");
up (&instance->serialize);
return -ENOMEM;
}
@@ -1216,7 +1220,7 @@
for (i = 0; i < num_rcv_urbs; i++)
if ((result = usb_unlink_urb (instance->receivers [i].urb)) < 0)
- dbg ("udsl_usb_disconnect: usb_unlink_urb on receive urb %d returned %d", i, \
result); + dbg ("udsl_usb_disconnect: usb_unlink_urb on receive urb %d returned \
%d!", i, result);
/* wait for completion handlers to finish */
do {
@@ -1252,7 +1256,7 @@
for (i = 0; i < num_snd_urbs; i++)
if ((result = usb_unlink_urb (instance->senders [i].urb)) < 0)
- dbg ("udsl_usb_disconnect: usb_unlink_urb on send urb %d returned %d", i, \
result); + dbg ("udsl_usb_disconnect: usb_unlink_urb on send urb %d returned %d!", \
i, result);
/* wait for completion handlers to finish */
do {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic