Skip to content

Commit 80a914d

Browse files
hharrisontorvalds
authored andcommitted
misc: replace __FUNCTION__ with __func__
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d5c003b commit 80a914d

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎arch/m32r/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#undef DEBUG_PROCESS
1212
#ifdef DEBUG_PROCESS
1313
#define DPRINTK(fmt, args...) printk("%s:%d:%s: " fmt, __FILE__, __LINE__, \
14-
__FUNCTION__, ##args)
14+
__func__, ##args)
1515
#else
1616
#define DPRINTK(fmt, args...)
1717
#endif

‎arch/x86/kvm/x86.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static void kvm_set_time_scale(uint32_t tsc_khz, struct pvclock_vcpu_time_info *
564564
hv_clock->tsc_to_system_mul = div_frac(nsecs, tps32);
565565

566566
pr_debug("%s: tsc_khz %u, tsc_shift %d, tsc_mul %u\n",
567-
__FUNCTION__, tsc_khz, hv_clock->tsc_shift,
567+
__func__, tsc_khz, hv_clock->tsc_shift,
568568
hv_clock->tsc_to_system_mul);
569569
}
570570

‎drivers/gpu/drm/i915/i915_dma.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static int i915_dispatch_flip(struct drm_device * dev)
517517
RING_LOCALS;
518518

519519
DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n",
520-
__FUNCTION__,
520+
__func__,
521521
dev_priv->current_page,
522522
dev_priv->sarea_priv->pf_current_page);
523523

@@ -642,7 +642,7 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data,
642642
static int i915_flip_bufs(struct drm_device *dev, void *data,
643643
struct drm_file *file_priv)
644644
{
645-
DRM_DEBUG("%s\n", __FUNCTION__);
645+
DRM_DEBUG("%s\n", __func__);
646646

647647
LOCK_TEST_WITH_RETURN(dev, file_priv);
648648

‎drivers/input/joystick/xpad.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,10 @@ static void xpad_bulk_out(struct urb *urb)
455455
case -ENOENT:
456456
case -ESHUTDOWN:
457457
/* this urb is terminated, clean up */
458-
dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status);
458+
dbg("%s - urb shutting down with status: %d", __func__, urb->status);
459459
break;
460460
default:
461-
dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status);
461+
dbg("%s - nonzero urb status received: %d", __func__, urb->status);
462462
}
463463
}
464464

‎drivers/s390/net/ctcm_mpc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ static int mpc_validate_xid(struct mpcg_info *mpcginfo)
16731673

16741674
done:
16751675
if (rc) {
1676-
ctcm_pr_info("ctcmpc : %s() failed\n", __FUNCTION__);
1676+
ctcm_pr_info("ctcmpc : %s() failed\n", __func__);
16771677
priv->xid->xid2_flag2 = 0x40;
16781678
grp->saved_xid2->xid2_flag2 = 0x40;
16791679
}

‎mm/bootmem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ early_param("bootmem_debug", bootmem_debug_setup);
4848
if (unlikely(bootmem_debug)) \
4949
printk(KERN_INFO \
5050
"bootmem::%s " fmt, \
51-
__FUNCTION__, ## args); \
51+
__func__, ## args); \
5252
})
5353

5454
static unsigned long __init bootmap_bytes(unsigned long pages)

0 commit comments

Comments
 (0)