[linux-dvb] Oops in tda10023

Oliver Endriss o.endriss at gmx.de
Sat May 31 00:24:13 CEST 2008


e9hack wrote:
> A third option is the following patch:

Ack for this one.

> diff -r 398b07fdfe79 linux/drivers/media/dvb/frontends/tda10023.c
> --- a/linux/drivers/media/dvb/frontends/tda10023.c      Wed May 28 17:55:13 2008 -0300
> +++ b/linux/drivers/media/dvb/frontends/tda10023.c      Fri May 30 23:02:55 2008 +0200
> @@ -90,7 +90,7 @@ static int tda10023_writereg (struct tda
>          if (ret != 1)
>                  printk("DVB: TDA10023(%d): %s, writereg error "
>                          "(reg == 0x%02x, val == 0x%02x, ret == %i)\n",
> -                       state->frontend.dvb->num, __func__, reg, data, ret);
> +                       state->frontend.dvb ? state->frontend.dvb->num : '?', __func__, 

Please replace '?' by -1.

Btw, the same code should be added to tda10023_readreg to print the
adapter number there.

CU
Oliver

-- 
----------------------------------------------------------------
VDR Remote Plugin 0.4.0: http://www.escape-edv.de/endriss/vdr/
----------------------------------------------------------------



More information about the linux-dvb mailing list