Skip to contentSkip to conversation

drivers/net: replace remaining __FUNCTION__ occurances

PATCH New Harvey Harrison 1 participant 1 message Mar 3, 2008

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net: replace remaining __FUNCTION__ occurances

__FUNCTION__ is gcc-specific, use __func__

---
Done with sed and eyeballed the diff afterwards, against net-2.6.26.git:master

 drivers/net/3c505.c                            |    4 +-
 drivers/net/8139too.c                          |    4 +-
 drivers/net/arcnet/arcnet.c                    |   18 +-
 drivers/net/arcnet/com20020.c                  |   16 +-
 drivers/net/ax88796.c                          |   14 +-
 drivers/net/bfin_mac.c                         |    8 +-
 drivers/net/bnx2x.h                            |    6 +-
 drivers/net/bonding/bonding.h                  |    2 +-
 drivers/net/cxgb3/cxgb3_offload.c              |    8 +-
 drivers/net/e100.c                             |    2 +-
 drivers/net/e1000/e1000.h                      |    2 +-
 drivers/net/enc28j60.c                         |   56 +++---
 drivers/net/ibm_newemac/phy.c                  |    2 +-
 drivers/net/irda/act200l-sir.c                 |   10 +-
 drivers/net/irda/actisys-sir.c                 |    2 +-
 drivers/net/irda/ali-ircc.c                    |  246 ++++++++++++------------
 drivers/net/irda/donauboe.c                    |   68 ++++----
 drivers/net/irda/girbil-sir.c                  |   12 +-
 drivers/net/irda/irda-usb.c                    |   92 +++++-----
 drivers/net/irda/irtty-sir.c                   |   12 +-
 drivers/net/irda/kingsun-sir.c                 |    2 +-
 drivers/net/irda/litelink-sir.c                |    8 +-
 drivers/net/irda/ma600-sir.c                   |   16 +-
 drivers/net/irda/mcp2120-sir.c                 |   12 +-
 drivers/net/irda/nsc-ircc.c                    |  112 ++++++------
 drivers/net/irda/old_belkin-sir.c              |    8 +-
 drivers/net/irda/sir_dev.c                     |   62 +++---
 drivers/net/irda/sir_dongle.c                  |    2 +-
 drivers/net/irda/smsc-ircc2.c                  |  120 ++++++------
 drivers/net/irda/tekram-sir.c                  |   10 +-
 drivers/net/irda/toim3232-sir.c                |   10 +-
 drivers/net/irda/via-ircc.c                    |   80 ++++----
 drivers/net/irda/vlsi_ir.c                     |   92 +++++-----
 drivers/net/irda/vlsi_ir.h                     |    2 +-
 drivers/net/irda/w83977af_ir.c                 |   62 +++---
 drivers/net/ixgb/ixgb.h                        |    2 +-
 drivers/net/ixgbe/ixgbe.h                      |    2 +-
 drivers/net/meth.c                             |    2 +-
 drivers/net/mipsnet.c                          |    2 +-
 drivers/net/netx-eth.c                         |    2 +-
 drivers/net/netxen/netxen_nic.h                |    2 +-
 drivers/net/netxen/netxen_nic_hw.c             |    2 +-
 drivers/net/netxen/netxen_nic_init.c           |    6 +-
 drivers/net/netxen/netxen_nic_isr.c            |    2 +-
 drivers/net/pci-skeleton.c                     |    4 +-
 drivers/net/r8169.c                            |    2 +-
 drivers/net/s2io.c                             |   44 ++--
 drivers/net/smc911x.c                          |   66 ++++----
 drivers/net/smc91x.c                           |   40 ++--
 drivers/net/tehuti.h                           |    8 +-
 drivers/net/tsi108_eth.c                       |    6 +-
 drivers/net/ucc_geth.c                         |  116 ++++++------
 drivers/net/usb/mcs7830.c                      |    2 +-
 drivers/net/usb/pegasus.c                      |   24 ++--
 drivers/net/usb/rtl8150.c                      |    6 +-
 drivers/net/via-velocity.h                     |    2 +-
 drivers/net/wan/cycx_drv.c                     |    6 +-
 drivers/net/wan/cycx_x25.c                     |   12 +-
 drivers/net/wan/dscc4.c                        |    2 +-
 drivers/net/wan/pc300_tty.c                    |    2 +-
 drivers/net/wireless/airo.c                    |   16 +-
 drivers/net/wireless/bcm43xx/bcm43xx.h         |    2 +-
 drivers/net/wireless/bcm43xx/bcm43xx_debugfs.h |    4 +-
 drivers/net/wireless/hermes.c                  |    2 +-
 drivers/net/wireless/ipw2100.c                 |    2 +-
 drivers/net/wireless/ipw2200.h                 |    4 +-
 drivers/net/wireless/iwlwifi/iwl-3945-debug.h  |    4 +-
 drivers/net/wireless/iwlwifi/iwl-4965-debug.h  |    4 +-
 drivers/net/wireless/iwlwifi/iwl3945-base.c    |    4 +-
 drivers/net/wireless/iwlwifi/iwl4965-base.c    |    4 +-
 drivers/net/wireless/libertas/defs.h           |    8 +-
 drivers/net/wireless/libertas/if_cs.c          |    4 +-
 drivers/net/wireless/prism54/isl_ioctl.c       |    8 +-
 drivers/net/wireless/rt2x00/rt2x00.h           |    4 +-
 drivers/net/wireless/wl3501_cs.c               |    8 +-
 75 files changed, 812 insertions(+), 812 deletions(-)
drivers/net/3c505.c +2 -2
index 9c65734..5c8866c 100644
@@ -130,12 +130,12 @@ static const char filename[] = __FILE__;
 
 static const char timeout_msg[] = "*** timeout at %s:%s (line %d) ***\n";
 #define TIMEOUT_MSG(lineno) \
-	printk(timeout_msg, filename,__FUNCTION__,(lineno))
+	printk(timeout_msg, filename,__func__,(lineno))
 
 static const char invalid_pcb_msg[] =
 "*** invalid pcb length %d at %s:%s (line %d) ***\n";
 #define INVALID_PCB_MSG(len) \
-	printk(invalid_pcb_msg, (len),filename,__FUNCTION__,__LINE__)
+	printk(invalid_pcb_msg, (len),filename,__func__,__LINE__)
 
 static char search_msg[] __initdata = KERN_INFO "%s: Looking for 3c505 adapter at address %#x...";
 
drivers/net/8139too.c +2 -2
index be6e918..39cb3c3 100644
@@ -134,7 +134,7 @@
 
 #if RTL8139_DEBUG
 /* note: prints function name for you */
-#  define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args)
+#  define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
 #else
 #  define DPRINTK(fmt, args...)
 #endif
@@ -145,7 +145,7 @@
 #  define assert(expr) \
         if(unlikely(!(expr))) {				        \
         printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n",	\
-        #expr,__FILE__,__FUNCTION__,__LINE__);		        \
+        #expr,__FILE__,__func__,__LINE__);		        \
         }
 #endif
 
drivers/net/arcnet/arcnet.c +9 -9
index c59c806..733f5c5 100644
@@ -442,24 +442,24 @@ static int arcnet_open(struct net_device *dev)
 		BUGMSG(D_NORMAL, "WARNING!  Station address FF may confuse "
 		       "DOS networking programs!\n");
 
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	if (ASTATUS() & RESETflag) {
-	  	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	  	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 		ACOMMAND(CFLAGScmd | RESETclear);
 	}
 
 
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	/* make sure we're ready to receive IRQ's. */
 	AINTMASK(0);
 	udelay(1);		/* give it time to set the mask before
 				 * we reset it again. (may not even be
 				 * necessary)
 				 */
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	lp->intmask = NORXflag | RECONflag;
 	AINTMASK(lp->intmask);
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 
 	netif_start_queue(dev);
 
@@ -670,14 +670,14 @@ static int arcnet_send_packet(struct sk_buff *skb, struct net_device *dev)
 		freeskb = 0;
 	}
 
-	BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__FUNCTION__,ASTATUS());
+	BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__func__,ASTATUS());
 	/* make sure we didn't ignore a TX IRQ while we were in here */
 	AINTMASK(0);
 
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	lp->intmask |= TXFREEflag|EXCNAKflag;
 	AINTMASK(lp->intmask);
-	BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__FUNCTION__,ASTATUS());
+	BUGMSG(D_DEBUG, "%s: %d: %s, status: %x\n",__FILE__,__LINE__,__func__,ASTATUS());
 
 	spin_unlock_irqrestore(&lp->lock, flags);
 	if (freeskb) {
@@ -798,7 +798,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id)
                 diagstatus = (status >> 8) & 0xFF;
 
 		BUGMSG(D_DEBUG, "%s: %d: %s: status=%x\n",
-			__FILE__,__LINE__,__FUNCTION__,status);
+			__FILE__,__LINE__,__func__,status);
 		didsomething = 0;
 
 		/*
drivers/net/arcnet/com20020.c +8 -8
index 7cf0a25..048faf2 100644
@@ -238,15 +238,15 @@ static int com20020_reset(struct net_device *dev, int really_reset)
 	u_char inbyte;
 
 	BUGMSG(D_DEBUG, "%s: %d: %s: dev: %p, lp: %p, dev->name: %s\n",
-		__FILE__,__LINE__,__FUNCTION__,dev,lp,dev->name);
+		__FILE__,__LINE__,__func__,dev,lp,dev->name);
 	BUGMSG(D_INIT, "Resetting %s (status=%02Xh)\n",
 	       dev->name, ASTATUS());
 
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	lp->config = TXENcfg | (lp->timeout << 3) | (lp->backplane << 2);
 	/* power-up defaults */
 	SETCONF;
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 
 	if (really_reset) {
 		/* reset the card */
@@ -254,22 +254,22 @@ static int com20020_reset(struct net_device *dev, int really_reset)
 		mdelay(RESETtime * 2);	/* COM20020 seems to be slower sometimes */
 	}
 	/* clear flags & end reset */
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	ACOMMAND(CFLAGScmd | RESETclear | CONFIGclear);
 
 	/* verify that the ARCnet signature byte is present */
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 
 	com20020_copy_from_card(dev, 0, 0, &inbyte, 1);
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 	if (inbyte != TESTvalue) {
-		BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+		BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 		BUGMSG(D_NORMAL, "reset failed: TESTvalue not present.\n");
 		return 1;
 	}
 	/* enable extended (512-byte) packets */
 	ACOMMAND(CONFIGcmd | EXTconf);
-	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__FUNCTION__);
+	BUGMSG(D_DEBUG, "%s: %d: %s\n",__FILE__,__LINE__,__func__);
 
 	/* done!  return success. */
 	return 0;
drivers/net/ax88796.c +7 -7
index 194949a..fe0bdca 100644
@@ -153,7 +153,7 @@ static void ax_reset_8390(struct net_device *dev)
 	while ((ei_inb(addr + EN0_ISR) & ENISR_RESET) == 0) {
 		if (jiffies - reset_start_time > 2*HZ/100) {
 			dev_warn(&ax->dev->dev, "%s: %s did not complete.\n",
-			       __FUNCTION__, dev->name);
+			       __func__, dev->name);
 			break;
 		}
 	}
@@ -173,7 +173,7 @@ static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
 	if (ei_status.dmaing) {
 		dev_err(&ax->dev->dev, "%s: DMAing conflict in %s "
 			"[DMAstat:%d][irqlock:%d].\n",
-			dev->name, __FUNCTION__,
+			dev->name, __func__,
 			ei_status.dmaing, ei_status.irqlock);
 		return;
 	}
@@ -215,7 +215,7 @@ static void ax_block_input(struct net_device *dev, int count,
 		dev_err(&ax->dev->dev,
 			"%s: DMAing conflict in %s "
 			"[DMAstat:%d][irqlock:%d].\n",
-			dev->name, __FUNCTION__,
+			dev->name, __func__,
 			ei_status.dmaing, ei_status.irqlock);
 		return;
 	}
@@ -260,7 +260,7 @@ static void ax_block_output(struct net_device *dev, int count,
 	if (ei_status.dmaing) {
 		dev_err(&ax->dev->dev, "%s: DMAing conflict in %s."
 			"[DMAstat:%d][irqlock:%d]\n",
-			dev->name, __FUNCTION__,
+			dev->name, __func__,
 		       ei_status.dmaing, ei_status.irqlock);
 		return;
 	}
@@ -396,7 +396,7 @@ ax_phy_issueaddr(struct net_device *dev, int phy_addr, int reg, int opc)
 {
 	if (phy_debug)
 		pr_debug("%s: dev %p, %04x, %04x, %d\n",
-			__FUNCTION__, dev, phy_addr, reg, opc);
+			__func__, dev, phy_addr, reg, opc);
 
 	ax_mii_ei_outbits(dev, 0x3f, 6);	/* pre-amble */
 	ax_mii_ei_outbits(dev, 1, 2);		/* frame-start */
@@ -422,7 +422,7 @@ ax_phy_read(struct net_device *dev, int phy_addr, int reg)
       	spin_unlock_irqrestore(&ei_local->page_lock, flags);
 
 	if (phy_debug)
-		pr_debug("%s: %04x.%04x => read %04x\n", __FUNCTION__,
+		pr_debug("%s: %04x.%04x => read %04x\n", __func__,
 			 phy_addr, reg, result);
 
 	return result;
@@ -436,7 +436,7 @@ ax_phy_write(struct net_device *dev, int phy_addr, int reg, int value)
 	unsigned long flags;
 
 	dev_dbg(&ax->dev->dev, "%s: %p, %04x, %04x %04x\n",
-		__FUNCTION__, dev, phy_addr, reg, value);
+		__func__, dev, phy_addr, reg, value);
 
       	spin_lock_irqsave(&ei->page_lock, flags);
 
drivers/net/bfin_mac.c +4 -4
index c993a32..7bafd68 100644
@@ -733,7 +733,7 @@ static void bf537mac_enable(void)
 {
 	u32 opmode;
 
-	pr_debug("%s: %s\n", DRV_NAME, __FUNCTION__);
+	pr_debug("%s: %s\n", DRV_NAME, __func__);
 
 	/* Set RX DMA */
 	bfin_write_DMA1_NEXT_DESC_PTR(&(rx_list_head->desc_a));
@@ -769,7 +769,7 @@ static void bf537mac_enable(void)
 /* Our watchdog timed out. Called by the networking layer */
 static void bf537mac_timeout(struct net_device *dev)
 {
-	pr_debug("%s: %s\n", dev->name, __FUNCTION__);
+	pr_debug("%s: %s\n", dev->name, __func__);
 
 	bf537mac_disable();
 
@@ -871,7 +871,7 @@ static int bf537mac_open(struct net_device *dev)
 {
 	struct bf537mac_local *lp = netdev_priv(dev);
 	int retval;
-	pr_debug("%s: %s\n", dev->name, __FUNCTION__);
+	pr_debug("%s: %s\n", dev->name, __func__);
 
 	/*
 	 * Check that the address is valid.  If its not, refuse
@@ -910,7 +910,7 @@ static int bf537mac_open(struct net_device *dev)
 static int bf537mac_close(struct net_device *dev)
 {
 	struct bf537mac_local *lp = netdev_priv(dev);
-	pr_debug("%s: %s\n", dev->name, __FUNCTION__);
+	pr_debug("%s: %s\n", dev->name, __func__);
 
 	netif_stop_queue(dev);
 	netif_carrier_off(dev);
drivers/net/bnx2x.h +3 -3
index 4f0c0d3..6d56769 100644
@@ -32,19 +32,19 @@
 /* regular debug print */
 #define DP(__mask, __fmt, __args...) do { \
 	if (bp->msglevel & (__mask)) \
-		printk(DP_LEVEL "[%s:%d(%s)]" __fmt, __FUNCTION__, \
+		printk(DP_LEVEL "[%s:%d(%s)]" __fmt, __func__, \
 		__LINE__, bp->dev?(bp->dev->name):"?", ##__args); \
 	} while (0)
 
 /* for errors (never masked) */
 #define BNX2X_ERR(__fmt, __args...) do { \
-	printk(KERN_ERR "[%s:%d(%s)]" __fmt, __FUNCTION__, \
+	printk(KERN_ERR "[%s:%d(%s)]" __fmt, __func__, \
 		__LINE__, bp->dev?(bp->dev->name):"?", ##__args); \
 	} while (0)
 
 /* for logging (never masked) */
 #define BNX2X_LOG(__fmt, __args...) do { \
-	printk(KERN_NOTICE "[%s:%d(%s)]" __fmt, __FUNCTION__, \
+	printk(KERN_NOTICE "[%s:%d(%s)]" __fmt, __func__, \
 		__LINE__, bp->dev?(bp->dev->name):"?", ##__args); \
 	} while (0)
 
drivers/net/bonding/bonding.h +1 -1
index 67ccad6..e57d977 100644
@@ -32,7 +32,7 @@
 #ifdef BONDING_DEBUG
 #define dprintk(fmt, args...) \
 	printk(KERN_DEBUG     \
-	       DRV_NAME ": %s() %d: " fmt, __FUNCTION__, __LINE__ , ## args )
+	       DRV_NAME ": %s() %d: " fmt, __func__, __LINE__ , ## args )
 #else
 #define dprintk(fmt, args...)
 #endif /* BONDING_DEBUG */
drivers/net/cxgb3/cxgb3_offload.c +4 -4
index 901c824..063465f 100644
@@ -984,7 +984,7 @@ static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e)
 
 	skb = alloc_skb(sizeof(*req), GFP_ATOMIC);
 	if (!skb) {
-		printk(KERN_ERR "%s: cannot allocate skb!\n", __FUNCTION__);
+		printk(KERN_ERR "%s: cannot allocate skb!\n", __func__);
 		return;
 	}
 	skb->priority = CPL_PRIORITY_CONTROL;
@@ -1015,14 +1015,14 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)
 		return;
 	if (!is_offloading(newdev)) {
 		printk(KERN_WARNING "%s: Redirect to non-offload "
-		       "device ignored.\n", __FUNCTION__);
+		       "device ignored.\n", __func__);
 		return;
 	}
 	tdev = dev2t3cdev(olddev);
 	BUG_ON(!tdev);
 	if (tdev != dev2t3cdev(newdev)) {
 		printk(KERN_WARNING "%s: Redirect to different "
-		       "offload device ignored.\n", __FUNCTION__);
+		       "offload device ignored.\n", __func__);
 		return;
 	}
 
@@ -1030,7 +1030,7 @@ void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)
 	e = t3_l2t_get(tdev, new->neighbour, newdev);
 	if (!e) {
 		printk(KERN_ERR "%s: couldn't allocate new l2t entry!\n",
-		       __FUNCTION__);
+		       __func__);
 		return;
 	}
 
drivers/net/e100.c +1 -1
index 36ba6dc..52cfb16 100644
@@ -191,7 +191,7 @@ MODULE_PARM_DESC(use_io, "Force use of i/o access mode");
 #define DPRINTK(nlevel, klevel, fmt, args...) \
 	(void)((NETIF_MSG_##nlevel & nic->msg_enable) && \
 	printk(KERN_##klevel PFX "%s: %s: " fmt, nic->netdev->name, \
-		__FUNCTION__ , ## args))
+		__func__ , ## args))
 
 #define INTEL_8255X_ETHERNET_DEVICE(device_id, ich) {\
 	PCI_VENDOR_ID_INTEL, device_id, PCI_ANY_ID, PCI_ANY_ID, \
drivers/net/e1000/e1000.h +1 -1
index 3b84028..19e00c3 100644
@@ -93,7 +93,7 @@ struct e1000_adapter;
 #define DPRINTK(nlevel, klevel, fmt, args...) \
 	(void)((NETIF_MSG_##nlevel & adapter->msg_enable) && \
 	printk(KERN_##klevel PFX "%s: %s: " fmt, adapter->netdev->name, \
-		__FUNCTION__ , ## args))
+		__func__ , ## args))
 
 #define E1000_MAX_INTR 10
 
drivers/net/enc28j60.c +28 -28

223 lines not on this page · raw message

drivers/net/ibm_newemac/phy.c +1 -1
index 37bfeea..9164abb 100644
@@ -321,7 +321,7 @@ static struct mii_phy_def bcm5248_phy_def = {
 
 static int m88e1111_init(struct mii_phy *phy)
 {
-	pr_debug("%s: Marvell 88E1111 Ethernet\n", __FUNCTION__);
+	pr_debug("%s: Marvell 88E1111 Ethernet\n", __func__);
 	phy_write(phy, 0x14, 0x0ce3);
 	phy_write(phy, 0x18, 0x4101);
 	phy_write(phy, 0x09, 0x0e00);
drivers/net/irda/act200l-sir.c +5 -5
index d8b89c7..37ab8c8 100644
@@ -107,7 +107,7 @@ static int act200l_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
+	IRDA_DEBUG(2, "%s()\n", __func__ );
 
 	/* Power on the dongle */
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
@@ -124,7 +124,7 @@ static int act200l_open(struct sir_dev *dev)
 
 static int act200l_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
+	IRDA_DEBUG(2, "%s()\n", __func__ );
 
 	/* Power off the dongle */
 	sirdev_set_dtr_rts(dev, FALSE, FALSE);
@@ -143,7 +143,7 @@ static int act200l_change_speed(struct sir_dev *dev, unsigned speed)
 	u8 control[3];
 	int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
+	IRDA_DEBUG(2, "%s()\n", __func__ );
 
 	/* Clear DTR and set RTS to enter command mode */
 	sirdev_set_dtr_rts(dev, FALSE, TRUE);
@@ -212,7 +212,7 @@ static int act200l_reset(struct sir_dev *dev)
 	};
 	int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__ );
+	IRDA_DEBUG(2, "%s()\n", __func__ );
 
 	switch (state) {
 	case SIRDEV_STATE_DONGLE_RESET:
@@ -240,7 +240,7 @@ static int act200l_reset(struct sir_dev *dev)
 		dev->speed = 9600;
 		break;
 	default:
-		IRDA_ERROR("%s(), unknown state %d\n", __FUNCTION__, state);
+		IRDA_ERROR("%s(), unknown state %d\n", __func__, state);
 		ret = -1;
 		break;
 	}
drivers/net/irda/actisys-sir.c +1 -1
index 736d247..50b2141 100644
@@ -165,7 +165,7 @@ static int actisys_change_speed(struct sir_dev *dev, unsigned speed)
 	int ret = 0;
 	int i = 0;
 
-        IRDA_DEBUG(4, "%s(), speed=%d (was %d)\n", __FUNCTION__,
+        IRDA_DEBUG(4, "%s(), speed=%d (was %d)\n", __func__,
         	speed, dev->speed);
 
 	/* dongle was already resetted from irda_request state machine,
drivers/net/irda/ali-ircc.c +123 -123

896 lines not on this page · raw message

drivers/net/irda/donauboe.c +34 -34

261 lines not on this page · raw message

drivers/net/irda/girbil-sir.c +6 -6
index 738531b..a31b8fa 100644
@@ -86,7 +86,7 @@ static int girbil_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power on dongle */
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
@@ -102,7 +102,7 @@ static int girbil_open(struct sir_dev *dev)
 
 static int girbil_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power off dongle */
 	sirdev_set_dtr_rts(dev, FALSE, FALSE);
@@ -126,7 +126,7 @@ static int girbil_change_speed(struct sir_dev *dev, unsigned speed)
 	u8 control[2];
 	static int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* dongle alread reset - port and dongle at default speed */
 
@@ -179,7 +179,7 @@ static int girbil_change_speed(struct sir_dev *dev, unsigned speed)
 		break;
 
 	default:
-		IRDA_ERROR("%s - undefined state %d\n", __FUNCTION__, state);
+		IRDA_ERROR("%s - undefined state %d\n", __func__, state);
 		ret = -EINVAL;
 		break;
 	}
@@ -209,7 +209,7 @@ static int girbil_reset(struct sir_dev *dev)
 	u8 control = GIRBIL_TXEN | GIRBIL_RXEN;
 	int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	switch (state) {
 	case SIRDEV_STATE_DONGLE_RESET:
@@ -241,7 +241,7 @@ static int girbil_reset(struct sir_dev *dev)
 		break;
 
 	default:
-		IRDA_ERROR("%s(), undefined state %d\n", __FUNCTION__, state);
+		IRDA_ERROR("%s(), undefined state %d\n", __func__, state);
 		ret = -1;
 		break;
 	}
drivers/net/irda/irda-usb.c +46 -46

359 lines not on this page · raw message

drivers/net/irda/irtty-sir.c +6 -6
index fc753d7..51fd902 100644
@@ -131,7 +131,7 @@ static int irtty_change_speed(struct sir_dev *dev, unsigned speed)
 
 	cflag &= ~CBAUD;
 
-	IRDA_DEBUG(2, "%s(), Setting speed to %d\n", __FUNCTION__, speed);
+	IRDA_DEBUG(2, "%s(), Setting speed to %d\n", __func__, speed);
 
 	switch (speed) {
 	case 1200:
@@ -271,7 +271,7 @@ static void irtty_receive_buf(struct tty_struct *tty, const unsigned char *cp,
 
 	dev = priv->dev;
 	if (!dev) {
-		IRDA_WARNING("%s(), not ready yet!\n", __FUNCTION__);
+		IRDA_WARNING("%s(), not ready yet!\n", __func__);
 		return;
 	}
 
@@ -428,7 +428,7 @@ static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int c
 	IRDA_ASSERT(priv != NULL, return -ENODEV;);
 	IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -EBADR;);
 
-	IRDA_DEBUG(3, "%s(cmd=0x%X)\n", __FUNCTION__, cmd);
+	IRDA_DEBUG(3, "%s(cmd=0x%X)\n", __func__, cmd);
 
 	dev = priv->dev;
 	IRDA_ASSERT(dev != NULL, return -1;);
@@ -517,7 +517,7 @@ static int irtty_open(struct tty_struct *tty)
 
 	mutex_unlock(&irtty_mutex);
 
-	IRDA_DEBUG(0, "%s - %s: irda line discipline opened\n", __FUNCTION__, tty->name);
+	IRDA_DEBUG(0, "%s - %s: irda line discipline opened\n", __func__, tty->name);
 
 	return 0;
 
@@ -569,7 +569,7 @@ static void irtty_close(struct tty_struct *tty)
 
 	kfree(priv);
 
-	IRDA_DEBUG(0, "%s - %s: irda line discipline closed\n", __FUNCTION__, tty->name);
+	IRDA_DEBUG(0, "%s - %s: irda line discipline closed\n", __func__, tty->name);
 }
 
 /* ------------------------------------------------------- */
@@ -607,7 +607,7 @@ static void __exit irtty_sir_cleanup(void)
 
 	if ((err = tty_unregister_ldisc(N_IRDA))) {
 		IRDA_ERROR("%s(), can't unregister line discipline (err = %d)\n",
-			   __FUNCTION__, err);
+			   __func__, err);
 	}
 }
 
drivers/net/irda/kingsun-sir.c +1 -1
index 648e54b..73fe83b 100644
@@ -243,7 +243,7 @@ static void kingsun_rcv_irq(struct urb *urb)
 		}
 	} else if (urb->actual_length > 0) {
 		err("%s(): Unexpected response length, expected %d got %d",
-		    __FUNCTION__, kingsun->max_rx, urb->actual_length);
+		    __func__, kingsun->max_rx, urb->actual_length);
 	}
 	/* This urb has already been filled in kingsun_net_open */
 	ret = usb_submit_urb(urb, GFP_ATOMIC);
drivers/net/irda/litelink-sir.c +4 -4
index 73261c5..d6d9d2e 100644
@@ -78,7 +78,7 @@ static int litelink_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power up dongle */
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
@@ -95,7 +95,7 @@ static int litelink_open(struct sir_dev *dev)
 
 static int litelink_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power off dongle */
 	sirdev_set_dtr_rts(dev, FALSE, FALSE);
@@ -113,7 +113,7 @@ static int litelink_change_speed(struct sir_dev *dev, unsigned speed)
 {
         int i;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* dongle already reset by irda-thread - current speed (dongle and
 	 * port) is the default speed (115200 for litelink!)
@@ -156,7 +156,7 @@ static int litelink_change_speed(struct sir_dev *dev, unsigned speed)
  */
 static int litelink_reset(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* probably the power-up can be dropped here, but with only
 	 * 15 usec delay it's not worth the risk unless somebody with
drivers/net/irda/ma600-sir.c +8 -8
index 809906d..1ceed9c 100644
@@ -67,13 +67,13 @@ static struct dongle_driver ma600 = {
 
 static int __init ma600_sir_init(void)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 	return irda_register_dongle(&ma600);
 }
 
 static void __exit ma600_sir_cleanup(void)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 	irda_unregister_dongle(&ma600);
 }
 
@@ -88,7 +88,7 @@ static int ma600_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
 
@@ -106,7 +106,7 @@ static int ma600_open(struct sir_dev *dev)
 
 static int ma600_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power off dongle */
 	sirdev_set_dtr_rts(dev, FALSE, FALSE);
@@ -176,7 +176,7 @@ static int ma600_change_speed(struct sir_dev *dev, unsigned speed)
 {
 	u8	byte;
 	
-	IRDA_DEBUG(2, "%s(), speed=%d (was %d)\n", __FUNCTION__,
+	IRDA_DEBUG(2, "%s(), speed=%d (was %d)\n", __func__,
 		speed, dev->speed);
 
 	/* dongle already reset, dongle and port at default speed (9600) */
@@ -201,12 +201,12 @@ static int ma600_change_speed(struct sir_dev *dev, unsigned speed)
 	sirdev_raw_read(dev, &byte, sizeof(byte));
 	if (byte != get_control_byte(speed))  {
 		IRDA_WARNING("%s(): bad control byte read-back %02x != %02x\n",
-			     __FUNCTION__, (unsigned) byte,
+			     __func__, (unsigned) byte,
 			     (unsigned) get_control_byte(speed));
 		return -1;
 	}
 	else
-		IRDA_DEBUG(2, "%s() control byte write read OK\n", __FUNCTION__);
+		IRDA_DEBUG(2, "%s() control byte write read OK\n", __func__);
 #endif
 
 	/* Set DTR, Set RTS */
@@ -238,7 +238,7 @@ static int ma600_change_speed(struct sir_dev *dev, unsigned speed)
 
 int ma600_reset(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Reset the dongle : set DTR low for 10 ms */
 	sirdev_set_dtr_rts(dev, FALSE, TRUE);
drivers/net/irda/mcp2120-sir.c +6 -6
index 67bd016..5e2f485 100644
@@ -63,7 +63,7 @@ static int mcp2120_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* seems no explicit power-on required here and reset switching it on anyway */
 
@@ -76,7 +76,7 @@ static int mcp2120_open(struct sir_dev *dev)
 
 static int mcp2120_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power off dongle */
         /* reset and inhibit mcp2120 */
@@ -102,7 +102,7 @@ static int mcp2120_change_speed(struct sir_dev *dev, unsigned speed)
 	u8 control[2];
 	static int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	switch (state) {
 	case SIRDEV_STATE_DONGLE_SPEED:
@@ -155,7 +155,7 @@ static int mcp2120_change_speed(struct sir_dev *dev, unsigned speed)
 		break;
 
 	default:
-		IRDA_ERROR("%s(), undefine state %d\n", __FUNCTION__, state);
+		IRDA_ERROR("%s(), undefine state %d\n", __func__, state);
 		ret = -EINVAL;
 		break;
 	}
@@ -187,7 +187,7 @@ static int mcp2120_reset(struct sir_dev *dev)
 	unsigned delay = 0;
 	int ret = 0;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	switch (state) {
 	case SIRDEV_STATE_DONGLE_RESET:
@@ -213,7 +213,7 @@ static int mcp2120_reset(struct sir_dev *dev)
 		break;
 
 	default:
-		IRDA_ERROR("%s(), undefined state %d\n", __FUNCTION__, state);
+		IRDA_ERROR("%s(), undefined state %d\n", __func__, state);
 		ret = -EINVAL;
 		break;
 	}
drivers/net/irda/nsc-ircc.c +56 -56

415 lines not on this page · raw message

drivers/net/irda/old_belkin-sir.c +4 -4
index 8c22c73..75714bc 100644
@@ -92,7 +92,7 @@ static int old_belkin_open(struct sir_dev *dev)
 {
 	struct qos_info *qos = &dev->qos;
 
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power on dongle */
 	sirdev_set_dtr_rts(dev, TRUE, TRUE);
@@ -110,7 +110,7 @@ static int old_belkin_open(struct sir_dev *dev)
 
 static int old_belkin_close(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* Power off dongle */
 	sirdev_set_dtr_rts(dev, FALSE, FALSE);
@@ -125,7 +125,7 @@ static int old_belkin_close(struct sir_dev *dev)
  */
 static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	dev->speed = 9600;
 	return (speed==dev->speed) ? 0 : -EINVAL;
@@ -139,7 +139,7 @@ static int old_belkin_change_speed(struct sir_dev *dev, unsigned speed)
  */
 static int old_belkin_reset(struct sir_dev *dev)
 {
-	IRDA_DEBUG(2, "%s()\n", __FUNCTION__);
+	IRDA_DEBUG(2, "%s()\n", __func__);
 
 	/* This dongles speed "defaults" to 9600 bps ;-) */
 	dev->speed = 9600;
drivers/net/irda/sir_dev.c +31 -31

218 lines not on this page · raw message

drivers/net/irda/sir_dongle.c +1 -1
index 25d5b8a..3603024 100644

Lines of this file are not shown. View the raw message.

drivers/net/irda/smsc-ircc2.c +60 -60

120 lines not on this page · raw message

drivers/net/irda/tekram-sir.c +5 -5
index d1ce5ae..048a154 100644

Lines of this file are not shown. View the raw message.

drivers/net/irda/toim3232-sir.c +5 -5
index aa1a9b0..fcf287b 100644

Lines of this file are not shown. View the raw message.

drivers/net/irda/via-ircc.c +40 -40

80 lines not on this page · raw message

drivers/net/irda/vlsi_ir.c +46 -46

92 lines not on this page · raw message

drivers/net/irda/vlsi_ir.h +1 -1
index c8b9c74..9b18843 100644

Lines of this file are not shown. View the raw message.

drivers/net/irda/w83977af_ir.c +31 -31

62 lines not on this page · raw message

drivers/net/ixgb/ixgb.h +1 -1
index 3d2e721..a264309 100644

Lines of this file are not shown. View the raw message.

drivers/net/ixgbe/ixgbe.h +1 -1
index d0bf206..986fb49 100644

Lines of this file are not shown. View the raw message.

drivers/net/meth.c +1 -1
index cdaa8fc..618c4e5 100644

Lines of this file are not shown. View the raw message.

drivers/net/mipsnet.c +1 -1
index 6d343ef..4e7a5fa 100644

Lines of this file are not shown. View the raw message.

drivers/net/netx-eth.c +1 -1
index 78d34af..cb14eee 100644

Lines of this file are not shown. View the raw message.

drivers/net/netxen/netxen_nic.h +1 -1
index 2bc5eaa..6c70c09 100644

Lines of this file are not shown. View the raw message.

drivers/net/netxen/netxen_nic_hw.c +1 -1
index 0135570..0df9d59 100644

Lines of this file are not shown. View the raw message.

drivers/net/netxen/netxen_nic_init.c +3 -3
index 9e38bcb..ce999e8 100644

Lines of this file are not shown. View the raw message.

drivers/net/netxen/netxen_nic_isr.c +1 -1
index 48a404a..81f32d6 100644

Lines of this file are not shown. View the raw message.

drivers/net/pci-skeleton.c +2 -2
index fffc49b..5220578 100644

Lines of this file are not shown. View the raw message.

drivers/net/r8169.c +1 -1
index 3acfeea..8a90ba8 100644

Lines of this file are not shown. View the raw message.

drivers/net/s2io.c +22 -22

44 lines not on this page · raw message

drivers/net/smc911x.c +33 -33

66 lines not on this page · raw message

drivers/net/smc91x.c +20 -20
index 4020e9e..7ec0c64 100644

Lines of this file are not shown. View the raw message.

drivers/net/tehuti.h +4 -4
index efd170f..e1aa703 100644

Lines of this file are not shown. View the raw message.

drivers/net/tsi108_eth.c +3 -3
index 6f33f84..25ad432 100644

Lines of this file are not shown. View the raw message.

drivers/net/ucc_geth.c +58 -58

116 lines not on this page · raw message

drivers/net/usb/mcs7830.c +1 -1
index c3d119f..aa1ab82 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/pegasus.c +12 -12
index d1ed68a..18cab7c 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/rtl8150.c +3 -3
index 7e1f001..bf3d193 100644

Lines of this file are not shown. View the raw message.

drivers/net/via-velocity.h +1 -1
index 7387be4..e5d8d34 100644

Lines of this file are not shown. View the raw message.

drivers/net/wan/cycx_drv.c +3 -3
index d14e667..a5ddc6c 100644

Lines of this file are not shown. View the raw message.

drivers/net/wan/cycx_x25.c +6 -6
index d3b28b0..5a7303d 100644

Lines of this file are not shown. View the raw message.

drivers/net/wan/dscc4.c +1 -1
index c6f26e2..31035cb 100644

Lines of this file are not shown. View the raw message.

drivers/net/wan/pc300_tty.c +1 -1
index 63abfd7..de6a46d 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/airo.c +8 -8
index 932d6b1..a64f3ef 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/bcm43xx/bcm43xx.h +1 -1
index 2ebd2ed..f21b412 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/bcm43xx/bcm43xx_debugfs.h +2 -2
index a40d1af..9ae31da 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/hermes.c +1 -1
index 29d3910..2cd86af 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ipw2100.c +1 -1
index 5bf9e00..c71bb09 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ipw2200.h +2 -2
index fdc187e..96d2327 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-3945-debug.h +2 -2
index f853c6b..ee4617c 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl-4965-debug.h +2 -2
index 36696bb..e9ea352 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl3945-base.c +2 -2
index 0fab832..7ab5b0b 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/iwlwifi/iwl4965-base.c +2 -2
index 20d012d..8fd8d73 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/libertas/defs.h +4 -4
index 3053cc2..8cd4b70 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/libertas/if_cs.c +2 -2
index 5a9cadb..c7c7484 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/prism54/isl_ioctl.c +4 -4
index 2d91a56..f193ab0 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rt2x00/rt2x00.h +2 -2
index fd65fcc..4b7ddd2 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/wl3501_cs.c +4 -4
index 42a36b3..58ce916 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.5.4.3.500.g83a2c

Part of the diff is not shown here. View the raw message.