提交 65d9bc92 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] dvb_usb_v2: use %*ph to dump usb xfer debugs

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 1d16e6d3
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "dvb_usb_common.h" #include "dvb_usb_common.h"
#undef DVB_USB_XFER_DEBUG
int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf,
u16 rlen) u16 rlen)
{ {
...@@ -37,10 +36,8 @@ int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, ...@@ -37,10 +36,8 @@ int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf,
if (ret < 0) if (ret < 0)
return ret; return ret;
#ifdef DVB_USB_XFER_DEBUG dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf);
print_hex_dump(KERN_DEBUG, KBUILD_MODNAME ": >>> ", DUMP_PREFIX_NONE,
32, 1, wbuf, wlen, 0);
#endif
ret = usb_bulk_msg(d->udev, usb_sndbulkpipe(d->udev, ret = usb_bulk_msg(d->udev, usb_sndbulkpipe(d->udev,
d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, d->props->generic_bulk_ctrl_endpoint), wbuf, wlen,
&actual_length, 2000); &actual_length, 2000);
...@@ -64,11 +61,8 @@ int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, ...@@ -64,11 +61,8 @@ int dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf,
dev_err(&d->udev->dev, "%s: 2nd usb_bulk_msg() " \ dev_err(&d->udev->dev, "%s: 2nd usb_bulk_msg() " \
"failed=%d\n", KBUILD_MODNAME, ret); "failed=%d\n", KBUILD_MODNAME, ret);
#ifdef DVB_USB_XFER_DEBUG dev_dbg(&d->udev->dev, "%s: <<< %*ph\n", __func__,
print_hex_dump(KERN_DEBUG, KBUILD_MODNAME ": <<< ", actual_length, rbuf);
DUMP_PREFIX_NONE, 32, 1, rbuf, actual_length,
0);
#endif
} }
mutex_unlock(&d->usb_mutex); mutex_unlock(&d->usb_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册