diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 08:47:04 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-03-29 08:47:04 -0300 |
commit | 686ff7fe92d95c0906ed35c145fdc32dd49350c6 (patch) | |
tree | 5586362df0b370ef21cdd98d9525d5c86c3d1bb5 /linux/drivers/media/video/cx88/cx88-alsa.c | |
parent | 396451756f52f81a20ee9099408b2b71192dae6f (diff) | |
download | mediapointer-dvb-s2-686ff7fe92d95c0906ed35c145fdc32dd49350c6.tar.gz mediapointer-dvb-s2-686ff7fe92d95c0906ed35c145fdc32dd49350c6.tar.bz2 |
Fix cx88_print_irqbits calls to use ARRAY_SIZE
From: Mauro Carvalho Chehab <mchehab@infradead.org>
cx88_print_irqbits were expecting a string pointer with 32 bytes. Better
to pass the string size and use ARRAY_SIZE on its calls.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-alsa.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-alsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c index bf67ec27d..da5dc6817 100644 --- a/linux/drivers/media/video/cx88/cx88-alsa.c +++ b/linux/drivers/media/video/cx88/cx88-alsa.c @@ -257,7 +257,8 @@ static void cx8801_aud_irq(snd_cx88_card_t *chip) cx_write(MO_AUD_INTSTAT, status); if (debug > 1 || (status & mask & ~0xff)) cx88_print_irqbits(core->name, "irq aud", - cx88_aud_irqs, status, mask); + cx88_aud_irqs, ARRAY_SIZE(cx88_aud_irqs), + status, mask); /* risc op code error */ if (status & (1 << 16)) { printk(KERN_WARNING "%s/0: audio risc op code error\n",core->name); |