Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85710
b: refs/heads/master
c: 46c9fc8
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent b233f0f commit f69dfdd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a348d2005d4a76c8c84150329f926c255c994ead
refs/heads/master: 46c9fc861f2a47ce806671933f96f03ab3bdda7a
23 changes: 14 additions & 9 deletions trunk/drivers/media/dvb/bt8xx/bt878.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ EXPORT_SYMBOL(bt878);
#if defined(dprintk)
#undef dprintk
#endif
#define dprintk if(bt878_debug) printk
#define dprintk(fmt, arg...) \
do { \
if (bt878_debug) \
printk(KERN_DEBUG fmt, ##arg); \
} while (0)

static void bt878_mem_free(struct bt878 *bt)
{
Expand Down Expand Up @@ -154,7 +158,7 @@ static int bt878_make_risc(struct bt878 *bt)
}

if (bt->line_count > 255) {
printk("bt878: buffer size error!\n");
printk(KERN_ERR "bt878: buffer size error!\n");
return -EINVAL;
}
return 0;
Expand Down Expand Up @@ -285,7 +289,8 @@ static irqreturn_t bt878_irq(int irq, void *dev_id)

if (astat & (BT878_ASCERR | BT878_AOCERR)) {
if (bt878_verbose) {
printk("bt878(%d): irq%s%s risc_pc=%08x\n",
printk(KERN_INFO
"bt878(%d): irq%s%s risc_pc=%08x\n",
bt->nr,
(astat & BT878_ASCERR) ? " SCERR" :
"",
Expand All @@ -295,8 +300,8 @@ static irqreturn_t bt878_irq(int irq, void *dev_id)
}
if (astat & (BT878_APABORT | BT878_ARIPERR | BT878_APPERR)) {
if (bt878_verbose) {
printk
("bt878(%d): irq%s%s%s risc_pc=%08x\n",
printk(KERN_INFO
"bt878(%d): irq%s%s%s risc_pc=%08x\n",
bt->nr,
(astat & BT878_APABORT) ? " PABORT" :
"",
Expand All @@ -308,8 +313,8 @@ static irqreturn_t bt878_irq(int irq, void *dev_id)
}
if (astat & (BT878_AFDSR | BT878_AFTRGT | BT878_AFBUS)) {
if (bt878_verbose) {
printk
("bt878(%d): irq%s%s%s risc_pc=%08x\n",
printk(KERN_INFO
"bt878(%d): irq%s%s%s risc_pc=%08x\n",
bt->nr,
(astat & BT878_AFDSR) ? " FDSR" : "",
(astat & BT878_AFTRGT) ? " FTRGT" :
Expand Down Expand Up @@ -510,7 +515,7 @@ static int __devinit bt878_probe(struct pci_dev *dev,
*/

if ((result = bt878_mem_alloc(bt))) {
printk("bt878: failed to allocate memory!\n");
printk(KERN_ERR "bt878: failed to allocate memory!\n");
goto fail2;
}

Expand All @@ -536,7 +541,7 @@ static void __devexit bt878_remove(struct pci_dev *pci_dev)
struct bt878 *bt = pci_get_drvdata(pci_dev);

if (bt878_verbose)
printk("bt878(%d): unloading\n", bt->nr);
printk(KERN_INFO "bt878(%d): unloading\n", bt->nr);

/* turn off all capturing, DMA and IRQs */
btand(~0x13, BT878_AGPIO_DMA_CTL);
Expand Down

0 comments on commit f69dfdd

Please sign in to comment.