atheros: avoid __FUNCTION__ usage
Use __func__ instead of gcc specific __FUNCTION__ as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41093
This commit is contained in:
parent
70b2a81a2e
commit
f363db0094
1 changed files with 6 additions and 6 deletions
|
@ -438,7 +438,7 @@
|
||||||
+ ar231x_descr_t *space;
|
+ ar231x_descr_t *space;
|
||||||
+
|
+
|
||||||
+ if (sp->rx_ring != NULL) {
|
+ if (sp->rx_ring != NULL) {
|
||||||
+ printk("%s: already done.\n", __FUNCTION__);
|
+ printk("%s: already done.\n", __func__);
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
@ -673,7 +673,7 @@
|
||||||
+ /* Allocate descriptors */
|
+ /* Allocate descriptors */
|
||||||
+ if (ar231x_allocate_descriptors(dev)) {
|
+ if (ar231x_allocate_descriptors(dev)) {
|
||||||
+ printk("%s: %s: ar231x_allocate_descriptors failed\n",
|
+ printk("%s: %s: ar231x_allocate_descriptors failed\n",
|
||||||
+ dev->name, __FUNCTION__);
|
+ dev->name, __func__);
|
||||||
+ ecode = -EAGAIN;
|
+ ecode = -EAGAIN;
|
||||||
+ goto init_error;
|
+ goto init_error;
|
||||||
+ }
|
+ }
|
||||||
|
@ -685,7 +685,7 @@
|
||||||
+ GFP_KERNEL);
|
+ GFP_KERNEL);
|
||||||
+ if (!(sp->rx_skb)) {
|
+ if (!(sp->rx_skb)) {
|
||||||
+ printk("%s: %s: rx_skb kmalloc failed\n",
|
+ printk("%s: %s: rx_skb kmalloc failed\n",
|
||||||
+ dev->name, __FUNCTION__);
|
+ dev->name, __func__);
|
||||||
+ ecode = -EAGAIN;
|
+ ecode = -EAGAIN;
|
||||||
+ goto init_error;
|
+ goto init_error;
|
||||||
+ }
|
+ }
|
||||||
|
@ -698,7 +698,7 @@
|
||||||
+ GFP_KERNEL);
|
+ GFP_KERNEL);
|
||||||
+ if (!(sp->tx_skb)) {
|
+ if (!(sp->tx_skb)) {
|
||||||
+ printk("%s: %s: tx_skb kmalloc failed\n",
|
+ printk("%s: %s: tx_skb kmalloc failed\n",
|
||||||
+ dev->name, __FUNCTION__);
|
+ dev->name, __func__);
|
||||||
+ ecode = -EAGAIN;
|
+ ecode = -EAGAIN;
|
||||||
+ goto init_error;
|
+ goto init_error;
|
||||||
+ }
|
+ }
|
||||||
|
@ -735,7 +735,7 @@
|
||||||
+ dev->name, dev);
|
+ dev->name, dev);
|
||||||
+ if (ecode) {
|
+ if (ecode) {
|
||||||
+ printk(KERN_WARNING "%s: %s: Requested IRQ %d is busy\n",
|
+ 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;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
@ -773,7 +773,7 @@
|
||||||
+ skb = netdev_alloc_skb_ip_align(dev, AR2313_BUFSIZE);
|
+ skb = netdev_alloc_skb_ip_align(dev, AR2313_BUFSIZE);
|
||||||
+ if (!skb) {
|
+ if (!skb) {
|
||||||
+ printk("\n\n\n\n %s: No memory in system\n\n\n\n",
|
+ printk("\n\n\n\n %s: No memory in system\n\n\n\n",
|
||||||
+ __FUNCTION__);
|
+ __func__);
|
||||||
+ break;
|
+ break;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue