patch-2.4.20 linux-2.4.20/drivers/net/irda/toshoboe.c
Next file: linux-2.4.20/drivers/net/irda/w83977af_ir.c
Previous file: linux-2.4.20/drivers/net/irda/tekram.c
Back to the patch index
Back to the overall index
- Lines: 156
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/net/irda/toshoboe.c
- Orig date:
Sun Sep 30 12:26:06 2001
diff -urN linux-2.4.19/drivers/net/irda/toshoboe.c linux-2.4.20/drivers/net/irda/toshoboe.c
@@ -94,7 +94,7 @@
static void
toshoboe_stopchip (struct toshoboe_cb *self)
{
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
outb_p (0x0e, OBOE_REG_11);
@@ -115,7 +115,7 @@
toshoboe_setbaud (struct toshoboe_cb *self, int baud)
{
unsigned long flags;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
printk (KERN_WARNING "ToshOboe: setting baud to %d\n", baud);
@@ -185,7 +185,7 @@
{
__u32 physaddr;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
outb_p (0, OBOE_LOCK);
@@ -214,7 +214,7 @@
static void
toshoboe_enablebm (struct toshoboe_cb *self)
{
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
pci_set_master (self->pdev);
}
@@ -223,7 +223,7 @@
toshoboe_disablebm (struct toshoboe_cb *self)
{
__u8 command;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
pci_read_config_byte (self->pdev, PCI_COMMAND, &command);
command &= ~PCI_COMMAND_MASTER;
@@ -238,7 +238,7 @@
int i;
unsigned long flags;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
save_flags (flags);
cli ();
@@ -365,7 +365,7 @@
return;
}
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
irqstat = inb_p (OBOE_ISR);
@@ -423,8 +423,7 @@
}
else
{
- printk (KERN_INFO __FUNCTION__
- "(), memory squeeze, dropping frame.\n");
+ printk (KERN_INFO "%s(), memory squeeze, dropping frame.\n", __FUNCTION__);
}
self->taskfile->recv[self->rxs].control = 0x83;
@@ -463,7 +462,7 @@
static int
toshoboe_net_init (struct net_device *dev)
{
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
/* Setup to be a normal IrDA network device driver */
irda_device_setup (dev);
@@ -512,7 +511,7 @@
struct toshoboe_cb *self;
char hwname[32];
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
ASSERT (dev != NULL, return -1;
);
@@ -559,7 +558,7 @@
{
struct toshoboe_cb *self;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
ASSERT (dev != NULL, return -1;
);
@@ -608,7 +607,7 @@
ASSERT(self != NULL, return -1;);
- IRDA_DEBUG(2, __FUNCTION__ "(), %s, (cmd=0x%X)\n", dev->name, cmd);
+ IRDA_DEBUG(2, "%s(), %s, (cmd=0x%X)\n", __FUNCTION__, dev->name, cmd);
/* Disable interrupts & save flags */
save_flags(flags);
@@ -654,7 +653,7 @@
int i;
struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
ASSERT (self != NULL, return;
);
@@ -704,7 +703,7 @@
int ok = 0;
int err;
- IRDA_DEBUG (4, __FUNCTION__ "()\n");
+ IRDA_DEBUG (4, "%s()\n", __FUNCTION__);
if ((err=pci_enable_device(pci_dev)))
return err;
@@ -733,8 +732,8 @@
/* Lock the port that we need */
if (NULL==request_region (self->io.sir_base, self->io.sir_ext, driver_name))
{
- IRDA_DEBUG (0, __FUNCTION__ "(), can't get iobase of 0x%03x\n",
- self->io.sir_base);
+ IRDA_DEBUG (0, "%s(), can't get iobase of 0x%03x\n",
+ __FUNCTION__, self->io.sir_base);
err = -EBUSY;
goto freeself;
@@ -824,7 +823,7 @@
if (!(dev = dev_alloc("irda%d", &err))) {
- ERROR(__FUNCTION__ "(), dev_alloc() failed!\n");
+ ERROR("%s(), dev_alloc() failed!\n", __FUNCTION__);
err = -ENOMEM;
goto freebufs;
}
@@ -843,7 +842,7 @@
err = register_netdevice(dev);
rtnl_unlock();
if (err) {
- ERROR(__FUNCTION__ "(), register_netdev() failed!\n");
+ ERROR("%s(), register_netdev() failed!\n", __FUNCTION__);
/* XXX there is not freeing for dev? */
goto freebufs;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)