@@ -881,6 +881,8 @@ static int su3000_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff)
.len = 1
};
+ deb_info("%s: onoff: %d\n", __func__, onoff);
+
i2c_transfer(&adap->dev->i2c_adap, &msg, 1);
return 0;
@@ -891,7 +893,7 @@ static int su3000_power_ctrl(struct dvb_usb_device *d, int i)
struct dw2102_state *state = (struct dw2102_state *)d->priv;
u8 obuf[] = {0xde, 0};
- info("%s: %d, initialized %d", __func__, i, state->initialized);
+ deb_info("%s: %d, initialized %d\n", __func__, i, state->initialized);
if (i && !state->initialized) {
state->initialized = 1;
@@ -938,7 +940,7 @@ static int su3000_identify_state(struct usb_device *udev,
struct dvb_usb_device_description **desc,
int *cold)
{
- info("%s", __func__);
+ deb_info("%s\n", __func__);
*cold = 0;
return 0;
@@ -4,6 +4,7 @@
#define DVB_USB_LOG_PREFIX "dw2102"
#include "dvb-usb.h"
+#define deb_info(args...) dprintk(dvb_usb_dw2102_debug, 0x01, args)
#define deb_xfer(args...) dprintk(dvb_usb_dw2102_debug, 0x02, args)
#define deb_rc(args...) dprintk(dvb_usb_dw2102_debug, 0x04, args)
#endif
Move some info printouts to be debugging printouts that are only shown if debugging for the module is enabled. The module already implemented deb_rc and deb_xfer, but not deb_info. Signed-off-by: Olli Salonen <olli.salonen@iki.fi> --- drivers/media/usb/dvb-usb/dw2102.c | 6 ++++-- drivers/media/usb/dvb-usb/dw2102.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-)