summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-06-30 19:54:34 -0400
committerSteven Toth <stoth@hauppauge.com>2008-06-30 19:54:34 -0400
commita14a52dcbc9e8093154f6309a9ea98221e9db948 (patch)
treebf973ad535dc4070d7ccb6356a053aa9bfcbdb6f
parent53eff196a31c492f2635343c8d0389145125fc67 (diff)
downloadmediapointer-dvb-s2-a14a52dcbc9e8093154f6309a9ea98221e9db948.tar.gz
mediapointer-dvb-s2-a14a52dcbc9e8093154f6309a9ea98221e9db948.tar.bz2
cx23885: Minor cleanup to the debuging output for a specific register.
From: Steven Toth <stoth@hauppauge.com> Don't display the register when it's not appropriate for the specific port. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: <>
-rw-r--r--linux/drivers/media/video/cx23885/cx23885-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-core.c b/linux/drivers/media/video/cx23885/cx23885-core.c
index 41e927ff9..7789649f8 100644
--- a/linux/drivers/media/video/cx23885/cx23885-core.c
+++ b/linux/drivers/media/video/cx23885/cx23885-core.c
@@ -1012,8 +1012,9 @@ static void cx23885_tsport_reg_dump(struct cx23885_tsport *port)
port->reg_gpcnt_ctl, cx_read(port->reg_gpcnt_ctl));
dprintk(1, "%s() dma_ctl(0x%08X) 0x%08x\n", __func__,
port->reg_dma_ctl, cx_read(port->reg_dma_ctl));
- dprintk(1, "%s() src_sel(0x%08X) 0x%08x\n", __func__,
- port->reg_src_sel, cx_read(port->reg_src_sel));
+ if (port->reg_src_sel)
+ dprintk(1, "%s() src_sel(0x%08X) 0x%08x\n", __func__,
+ port->reg_src_sel, cx_read(port->reg_src_sel));
dprintk(1, "%s() lngth(0x%08X) 0x%08x\n", __func__,
port->reg_lngth, cx_read(port->reg_lngth));
dprintk(1, "%s() hw_sop_ctrl(0x%08X) 0x%08x\n", __func__,