speedtch usbatm.c,1.47,1.48
Duncan Sands
duncan at infradead.org
Fri Sep 9 09:56:26 EDT 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv11256
Modified Files:
usbatm.c
Log Message:
These are errors, so record them as such. I left bind failure as a debug
message, since it may not always represent a serious failure, and anyway
the bind routine can print a message about what went wrong.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- usbatm.c 27 May 2005 16:17:23 -0000 1.47
+++ usbatm.c 9 Sep 2005 13:56:22 -0000 1.48
@@ -962,7 +962,7 @@
/* instance init */
instance = kcalloc(1, sizeof(*instance) + sizeof(struct urb *) * (num_rcv_urbs + num_snd_urbs), GFP_KERNEL);
if (!instance) {
- dev_dbg(dev, "%s: no memory for instance data!\n", __func__);
+ dev_err(dev, "%s: no memory for instance data!\n", __func__);
return -ENOMEM;
}
@@ -1044,7 +1044,7 @@
urb = usb_alloc_urb(iso_packets, GFP_KERNEL);
if (!urb) {
- dev_dbg(dev, "%s: no memory for urb %d!\n", __func__, i);
+ dev_err(dev, "%s: no memory for urb %d!\n", __func__, i);
goto fail_unbind;
}
@@ -1052,7 +1052,7 @@
buffer = kmalloc(channel->buf_size, GFP_KERNEL);
if (!buffer) {
- dev_dbg(dev, "%s: no memory for buffer %d!\n", __func__, i);
+ dev_err(dev, "%s: no memory for buffer %d!\n", __func__, i);
goto fail_unbind;
}
memset(buffer, 0, channel->buf_size);
More information about the Usbatm-commits
mailing list