summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/btcx-risc.c
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2005-02-21 13:57:59 +0000
committerGerd Knorr <devnull@localhost>2005-02-21 13:57:59 +0000
commit680f9b6a97792f407c61af049c87f2909d8875cc (patch)
tree0b17e60b8d1b651d70056b4e74eea56fab5d20b9 /linux/drivers/media/video/btcx-risc.c
parent4d292e354c6a309594495ffc983327775c037503 (diff)
downloadmediapointer-dvb-s2-680f9b6a97792f407c61af049c87f2909d8875cc.tar.gz
mediapointer-dvb-s2-680f9b6a97792f407c61af049c87f2909d8875cc.tar.bz2
- add some bttv debug code.
Diffstat (limited to 'linux/drivers/media/video/btcx-risc.c')
-rw-r--r--linux/drivers/media/video/btcx-risc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/linux/drivers/media/video/btcx-risc.c b/linux/drivers/media/video/btcx-risc.c
index b51e4599b..fc3ff967e 100644
--- a/linux/drivers/media/video/btcx-risc.c
+++ b/linux/drivers/media/video/btcx-risc.c
@@ -1,5 +1,5 @@
/*
- $Id: btcx-risc.c,v 1.5 2004/12/10 12:33:39 kraxel Exp $
+ $Id: btcx-risc.c,v 1.6 2005/02/21 13:57:59 kraxel Exp $
btcx-risc.c
@@ -53,12 +53,13 @@ void btcx_riscmem_free(struct pci_dev *pci,
{
if (NULL == risc->cpu)
return;
- pci_free_consistent(pci, risc->size, risc->cpu, risc->dma);
- memset(risc,0,sizeof(*risc));
if (debug) {
memcnt--;
- printk("btcx: riscmem free [%d]\n",memcnt);
+ printk("btcx: riscmem free [%d] dma=%lx\n",
+ memcnt, (unsigned long)risc->dma);
}
+ pci_free_consistent(pci, risc->size, risc->cpu, risc->dma);
+ memset(risc,0,sizeof(*risc));
}
int btcx_riscmem_alloc(struct pci_dev *pci,
@@ -79,7 +80,8 @@ int btcx_riscmem_alloc(struct pci_dev *pci,
risc->size = size;
if (debug) {
memcnt++;
- printk("btcx: riscmem alloc size=%d [%d]\n",size,memcnt);
+ printk("btcx: riscmem alloc [%d] dma=%lx cpu=%p size=%d\n",
+ memcnt, (unsigned long)dma, cpu, size);
}
}
memset(risc->cpu,0,risc->size);