trivial: replace last usages of __FUNCTION__ in kernel
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 7 Jan 2009 22:42:41 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Jan 2009 23:48:54 +0000 (15:48 -0800)
__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/mm/numa_32.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/i915/i915_gem.c
drivers/media/dvb/frontends/lgdt3304.c
drivers/media/dvb/frontends/s921_module.c
drivers/media/dvb/ttpci/budget-ci.c

index 8518c678d83f92377e49df44244ebe57ad17bb71..d1f7439d173c2ba10791d6358dd90b4d50325442 100644 (file)
@@ -239,7 +239,7 @@ void resume_map_numa_kva(pgd_t *pgd_base)
                start_pfn = node_remap_start_pfn[node];
                size = node_remap_size[node];
 
-               printk(KERN_DEBUG "%s: node %d\n", __FUNCTION__, node);
+               printk(KERN_DEBUG "%s: node %d\n", __func__, node);
 
                for (pfn = 0; pfn < size; pfn += PTRS_PER_PTE) {
                        unsigned long vaddr = start_va + (pfn << PAGE_SHIFT);
@@ -251,7 +251,7 @@ void resume_map_numa_kva(pgd_t *pgd_base)
                                                PAGE_KERNEL_LARGE_EXEC));
 
                        printk(KERN_DEBUG "%s: %08lx -> pfn %08lx\n",
-                               __FUNCTION__, vaddr, start_pfn + pfn);
+                               __func__, vaddr, start_pfn + pfn);
                }
        }
 }
index 53c87254be4c237e10add351573e563263f18840..5b2cbb778162ac2f2672e278f33eae2a32ff5774 100644 (file)
@@ -210,7 +210,7 @@ static int drm_mode_object_get(struct drm_device *dev,
        int ret;
 
        WARN(!mutex_is_locked(&dev->mode_config.mutex),
-            "%s called w/o mode_config lock\n", __FUNCTION__);
+            "%s called w/o mode_config lock\n", __func__);
 again:
        if (idr_pre_get(&dev->mode_config.crtc_idr, GFP_KERNEL) == 0) {
                DRM_ERROR("Ran out memory getting a mode number\n");
index 14afc23a0e240301744151f10de5dd464d8f24cc..1384d6686555b4418d5e3be9a1dbf3fc41f4438f 100644 (file)
@@ -1445,7 +1445,7 @@ static void i915_write_fence_reg(struct drm_i915_fence_reg *reg)
 
        if ((obj_priv->gtt_offset & ~I915_FENCE_START_MASK) ||
            (obj_priv->gtt_offset & (obj->size - 1))) {
-               WARN(1, "%s: object not 1M or size aligned\n", __FUNCTION__);
+               WARN(1, "%s: object not 1M or size aligned\n", __func__);
                return;
        }
 
@@ -1478,7 +1478,7 @@ static void i830_write_fence_reg(struct drm_i915_fence_reg *reg)
 
        if ((obj_priv->gtt_offset & ~I915_FENCE_START_MASK) ||
            (obj_priv->gtt_offset & (obj->size - 1))) {
-               WARN(1, "%s: object not 1M or size aligned\n", __FUNCTION__);
+               WARN(1, "%s: object not 1M or size aligned\n", __func__);
                return;
        }
 
index 469ace5692c6755e8c3fc971761c64175fb1b184..3bb0c4394f8a17ac8ace04405326e8dc1d4c710c 100644 (file)
@@ -42,7 +42,7 @@ static int i2c_write_demod_bytes (struct dvb_frontend *fe, __u8 *buf, int len)
 
        for (i=0; i<len-1; i+=3){
                if((err = i2c_transfer(state->i2c, &i2cmsgs, 1))<0) {
-                       printk("%s i2c_transfer error %d\n", __FUNCTION__, err);
+                       printk("%s i2c_transfer error %d\n", __func__, err);
                        if (err < 0)
                                return err;
                        else
@@ -73,7 +73,7 @@ static int lgdt3304_i2c_read_reg(struct dvb_frontend *fe, unsigned int reg)
        i2cmsgs[1].buf = &buf;
 
        if((ret = i2c_transfer(state->i2c, i2cmsgs, 2))<0) {
-               printk("%s i2c_transfer error %d\n", __FUNCTION__, ret);
+               printk("%s i2c_transfer error %d\n", __func__, ret);
                return ret;
        }
 
@@ -94,7 +94,7 @@ static int lgdt3304_i2c_write_reg(struct dvb_frontend *fe, int reg, int val)
        };
        ret = i2c_transfer(state->i2c, &i2cmsgs, 1);
        if (ret != 1) {
-               printk("%s i2c_transfer error %d\n", __FUNCTION__, ret);
+               printk("%s i2c_transfer error %d\n", __func__, ret);
                return ret;
        }
 
@@ -238,7 +238,7 @@ static int lgdt3304_set_parameters(struct dvb_frontend *fe, struct dvb_frontend_
                }
 
                if (err) {
-                       printk("%s error setting modulation\n", __FUNCTION__);
+                       printk("%s error setting modulation\n", __func__);
                } else {
                        state->current_modulation = param->u.vsb.modulation;
                }
@@ -305,7 +305,7 @@ static int lgdt3304_read_status(struct dvb_frontend *fe, fe_status_t *status)
                }
                break;
        default:
-               printk("%s unhandled modulation\n", __FUNCTION__);
+               printk("%s unhandled modulation\n", __func__);
        }
 
 
index 3cbb9cb2cf47a34d6015e9369177cbc936c62fd2..892af8c9ed570d3038b0f9f4b040aea3040d629f 100644 (file)
@@ -136,7 +136,7 @@ static int s921_write(void *dev, u8 reg, u8 val) {
        };
 
        if((err = i2c_transfer(state->i2c, &i2cmsgs, 1))<0) {
-               printk("%s i2c_transfer error %d\n", __FUNCTION__, err);
+               printk("%s i2c_transfer error %d\n", __func__, err);
                if (err < 0)
                        return err;
                else
index 3507463fdac96670bc9f6a11fa32151e404d4a60..4d2a5cf27c31ff393ab570c7d59c88568f0b0697 100644 (file)
@@ -1450,7 +1450,7 @@ static void frontend_init(struct budget_ci *budget_ci)
                if (budget_ci->budget.dvb_frontend) {
                        if (dvb_attach(stb6100_attach, budget_ci->budget.dvb_frontend, &tt3200_stb6100_config, &budget_ci->budget.i2c_adap)) {
                                if (!dvb_attach(lnbp21_attach, budget_ci->budget.dvb_frontend, &budget_ci->budget.i2c_adap, 0, 0)) {
-                                       printk("%s: No LNBP21 found!\n", __FUNCTION__);
+                                       printk("%s: No LNBP21 found!\n", __func__);
                                        dvb_frontend_detach(budget_ci->budget.dvb_frontend);
                                        budget_ci->budget.dvb_frontend = NULL;
                                }