atheros: avoid __FUNCTION__ usage
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 Jun 2014 09:06:14 +0000 (09:06 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 10 Jun 2014 09:06:14 +0000 (09:06 +0000)
Use __func__ instead of gcc specific __FUNCTION__ as suggested by
checkpatch.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41093 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch

index b283e31..00348c3 100644 (file)
 +      ar231x_descr_t *space;
 +
 +      if (sp->rx_ring != NULL) {
 +      ar231x_descr_t *space;
 +
 +      if (sp->rx_ring != NULL) {
-+              printk("%s: already done.\n", __FUNCTION__);
++              printk("%s: already done.\n", __func__);
 +              return 0;
 +      }
 +
 +              return 0;
 +      }
 +
 +      /* Allocate descriptors */
 +      if (ar231x_allocate_descriptors(dev)) {
 +              printk("%s: %s: ar231x_allocate_descriptors failed\n",
 +      /* Allocate descriptors */
 +      if (ar231x_allocate_descriptors(dev)) {
 +              printk("%s: %s: ar231x_allocate_descriptors failed\n",
-+                         dev->name, __FUNCTION__);
++                     dev->name, __func__);
 +              ecode = -EAGAIN;
 +              goto init_error;
 +      }
 +              ecode = -EAGAIN;
 +              goto init_error;
 +      }
 +                                      GFP_KERNEL);
 +              if (!(sp->rx_skb)) {
 +                      printk("%s: %s: rx_skb kmalloc failed\n",
 +                                      GFP_KERNEL);
 +              if (!(sp->rx_skb)) {
 +                      printk("%s: %s: rx_skb kmalloc failed\n",
-+                                 dev->name, __FUNCTION__);
++                             dev->name, __func__);
 +                      ecode = -EAGAIN;
 +                      goto init_error;
 +              }
 +                      ecode = -EAGAIN;
 +                      goto init_error;
 +              }
 +                                      GFP_KERNEL);
 +              if (!(sp->tx_skb)) {
 +                      printk("%s: %s: tx_skb kmalloc failed\n",
 +                                      GFP_KERNEL);
 +              if (!(sp->tx_skb)) {
 +                      printk("%s: %s: tx_skb kmalloc failed\n",
-+                                 dev->name, __FUNCTION__);
++                             dev->name, __func__);
 +                      ecode = -EAGAIN;
 +                      goto init_error;
 +              }
 +                      ecode = -EAGAIN;
 +                      goto init_error;
 +              }
 +                                      dev->name, dev);
 +      if (ecode) {
 +              printk(KERN_WARNING "%s: %s: Requested IRQ %d is busy\n",
 +                                      dev->name, dev);
 +      if (ecode) {
 +              printk(KERN_WARNING "%s: %s: Requested IRQ %d is busy\n",
-+                         dev->name, __FUNCTION__, dev->irq);
++                     dev->name, __func__, dev->irq);
 +              goto init_error;
 +      }
 +
 +              goto init_error;
 +      }
 +
 +              skb = netdev_alloc_skb_ip_align(dev, AR2313_BUFSIZE);
 +              if (!skb) {
 +                      printk("\n\n\n\n %s: No memory in system\n\n\n\n",
 +              skb = netdev_alloc_skb_ip_align(dev, AR2313_BUFSIZE);
 +              if (!skb) {
 +                      printk("\n\n\n\n %s: No memory in system\n\n\n\n",
-+                                 __FUNCTION__);
++                             __func__);
 +                      break;
 +              }
 +
 +                      break;
 +              }
 +