parisc: replace remaining __FUNCTION__ occurrences
PATCH 2/5 parisc: replace remaining __FUNCTION__ occurrences
From: Harvey Harrison <[email protected]>
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by Harvey Harrison <[email protected]>
Cc Kyle McMartin <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Grant Grundler <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/parisc/kernel/inventory.c | 2 +- arch/parisc/kernel/traps.c | 2 +- arch/parisc/kernel/unaligned.c | 2 +- arch/parisc/lib/memcpy.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/parisc/kernel/inventory.c renamed from arch/parisc/kernel/inventory.c~parisc-replace-remaining-__function__-occurences +1 -1
@@ -499,7 +499,7 @@ add_system_map_addresses(struct parisc_d dev->addr =kmalloc (num_addrs *sizeof (unsigned long ),GFP_KERNEL );if (!dev->addr) {printk (KERN_ERR "%s %s(): memory allocation failure\n" , - __FILE__, __FUNCTION__); + __FILE__, __func__);return ; }
arch/parisc/kernel/traps.c renamed from arch/parisc/kernel/traps.c~parisc-replace-remaining-__function__-occurences +1 -1
@@ -275,7 +275,7 @@ KERN_CRIT " || |/* Wot's wrong wif bein' racy? */ if (current->thread.flags &PARISC_KERNEL_DEATH ) { -printk (KERN_CRIT "%s() recursion detected.\n" , __FUNCTION__); +printk (KERN_CRIT "%s() recursion detected.\n" , __func__);local_irq_enable ();while (1 ); }
arch/parisc/kernel/unaligned.c renamed from arch/parisc/kernel/unaligned.c~parisc-replace-remaining-__function__-occurences +1 -1
@@ -30,7 +30,7 @@/* #define DEBUG_UNALIGNED 1 */ #ifdef DEBUG_UNALIGNED -#define DPRINTF(fmt, args...) do { printk(KERN_DEBUG "%s:%d:%s ", __FILE__, __LINE__, __FUNCTION__ ); printk(KERN_DEBUG fmt, ##args ); } while (0) +#define DPRINTF(fmt, args...) do { printk(KERN_DEBUG "%s:%d:%s ", __FILE__, __LINE__, __func__ ); printk(KERN_DEBUG fmt, ##args ); } while (0)#else #define DPRINTF(fmt, args...)#endif
arch/parisc/lib/memcpy.c renamed from arch/parisc/lib/memcpy.c~parisc-replace-remaining-__function__-occurences +1 -1
@@ -91,7 +91,7 @@ DECLARE_PER_CPU(struct exception_data, e#define THRESHOLD 16#ifdef DEBUG_MEMCPY -#define DPRINTF(fmt, args...) do { printk(KERN_DEBUG "%s:%d:%s ", __FILE__, __LINE__, __FUNCTION__ ); printk(KERN_DEBUG fmt, ##args ); } while (0) +#define DPRINTF(fmt, args...) do { printk(KERN_DEBUG "%s:%d:%s ", __FILE__, __LINE__, __func__ ); printk(KERN_DEBUG fmt, ##args ); } while (0)#else #define DPRINTF(fmt, args...)#endif
_