]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dvb_usb_v2: fix dvb_usb_generic_rw() debug
authorAntti Palosaari <crope@iki.fi>
Thu, 7 Jun 2012 21:37:42 +0000 (18:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:28 +0000 (07:56 -0300)
Debug prints write operation data instead of read data was
intention.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb_urb.c

index f2dc6b928ebe8ca76bb46cc9ebd67ebc4b954060..a32722087a0c79c36ad4923073ce8bb06dc32c53 100644 (file)
@@ -55,7 +55,8 @@ int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf,
                                        KBUILD_MODNAME, ret);
                else
                        print_hex_dump(KERN_DEBUG, KBUILD_MODNAME ": <<< ",
-                                       DUMP_PREFIX_NONE, 32, 1, wbuf, wlen, 0);
+                                       DUMP_PREFIX_NONE, 32, 1, rbuf, actlen,
+                                       0);
        }
 
        mutex_unlock(&d->usb_mutex);