]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
misc: replace __FUNCTION__ with __func__
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 16 Oct 2008 05:01:25 +0000 (22:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:30 +0000 (11:21 -0700)
__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>
arch/m32r/kernel/process.c
arch/x86/kvm/x86.c
drivers/gpu/drm/i915/i915_dma.c
drivers/input/joystick/xpad.c
drivers/s390/net/ctcm_mpc.c
mm/bootmem.c

index 5be4faaf5b1c49c03391bb298e6f83122d6d88ab..7103d91e1a2f92ee3db9a4d060336ee29c08d347 100644 (file)
@@ -11,7 +11,7 @@
 #undef DEBUG_PROCESS
 #ifdef DEBUG_PROCESS
 #define DPRINTK(fmt, args...)  printk("%s:%d:%s: " fmt, __FILE__, __LINE__, \
-  __FUNCTION__, ##args)
+  __func__, ##args)
 #else
 #define DPRINTK(fmt, args...)
 #endif
index 0d682fc6aeb333c382e6b9324105e2eb941bc545..19afbb644c7f7649420d1bbc5a7cba209e0b3f2b 100644 (file)
@@ -564,7 +564,7 @@ static void kvm_set_time_scale(uint32_t tsc_khz, struct pvclock_vcpu_time_info *
        hv_clock->tsc_to_system_mul = div_frac(nsecs, tps32);
 
        pr_debug("%s: tsc_khz %u, tsc_shift %d, tsc_mul %u\n",
-                __FUNCTION__, tsc_khz, hv_clock->tsc_shift,
+                __func__, tsc_khz, hv_clock->tsc_shift,
                 hv_clock->tsc_to_system_mul);
 }
 
index 88974342933c62f253d7406c33989b152014b8b8..9ac4720e647b2e2b026791d3d96d24ee2ef226a2 100644 (file)
@@ -517,7 +517,7 @@ static int i915_dispatch_flip(struct drm_device * dev)
        RING_LOCALS;
 
        DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n",
-                 __FUNCTION__,
+                 __func__,
                  dev_priv->current_page,
                  dev_priv->sarea_priv->pf_current_page);
 
@@ -642,7 +642,7 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data,
 static int i915_flip_bufs(struct drm_device *dev, void *data,
                          struct drm_file *file_priv)
 {
-       DRM_DEBUG("%s\n", __FUNCTION__);
+       DRM_DEBUG("%s\n", __func__);
 
        LOCK_TEST_WITH_RETURN(dev, file_priv);
 
index 6791be81eb2904b15780da13dac99ce11e5925a6..839d1c9622f66c1f4c1a217bf8a6c3c55503f990 100644 (file)
@@ -455,10 +455,10 @@ static void xpad_bulk_out(struct urb *urb)
        case -ENOENT:
        case -ESHUTDOWN:
                /* this urb is terminated, clean up */
-               dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status);
+               dbg("%s - urb shutting down with status: %d", __func__, urb->status);
                break;
        default:
-               dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status);
+               dbg("%s - nonzero urb status received: %d", __func__, urb->status);
        }
 }
 
index cbe470493bf01487c6e99ff09f51945732dcfbb3..19f5d5ed85e087b73cce2e24db1bcbc8d92d6a02 100644 (file)
@@ -1673,7 +1673,7 @@ static int mpc_validate_xid(struct mpcg_info *mpcginfo)
 
 done:
        if (rc) {
-               ctcm_pr_info("ctcmpc       :  %s() failed\n", __FUNCTION__);
+               ctcm_pr_info("ctcmpc       :  %s() failed\n", __func__);
                priv->xid->xid2_flag2 = 0x40;
                grp->saved_xid2->xid2_flag2 = 0x40;
        }
index ad8eec6e44a85a9593c781ce252b127cb96992cd..ac5a891f142a8176dc7c3fdd2592ef6c89511dec 100644 (file)
@@ -48,7 +48,7 @@ early_param("bootmem_debug", bootmem_debug_setup);
        if (unlikely(bootmem_debug))                    \
                printk(KERN_INFO                        \
                        "bootmem::%s " fmt,             \
-                       __FUNCTION__, ## args);         \
+                       __func__, ## args);             \
 })
 
 static unsigned long __init bootmap_bytes(unsigned long pages)