parisc: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Matthew Wilcox <willy@debian.org> Cc: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
9e491e54f0
commit
91bae23ce1
|
@ -499,7 +499,7 @@ add_system_map_addresses(struct parisc_device *dev, int num_addrs,
|
||||||
dev->addr = kmalloc(num_addrs * sizeof(unsigned long), GFP_KERNEL);
|
dev->addr = kmalloc(num_addrs * sizeof(unsigned long), GFP_KERNEL);
|
||||||
if(!dev->addr) {
|
if(!dev->addr) {
|
||||||
printk(KERN_ERR "%s %s(): memory allocation failure\n",
|
printk(KERN_ERR "%s %s(): memory allocation failure\n",
|
||||||
__FILE__, __FUNCTION__);
|
__FILE__, __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ KERN_CRIT " || ||\n");
|
||||||
|
|
||||||
/* Wot's wrong wif bein' racy? */
|
/* Wot's wrong wif bein' racy? */
|
||||||
if (current->thread.flags & PARISC_KERNEL_DEATH) {
|
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();
|
local_irq_enable();
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
/* #define DEBUG_UNALIGNED 1 */
|
/* #define DEBUG_UNALIGNED 1 */
|
||||||
|
|
||||||
#ifdef DEBUG_UNALIGNED
|
#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
|
#else
|
||||||
#define DPRINTF(fmt, args...)
|
#define DPRINTF(fmt, args...)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -91,7 +91,7 @@ DECLARE_PER_CPU(struct exception_data, exception_data);
|
||||||
#define THRESHOLD 16
|
#define THRESHOLD 16
|
||||||
|
|
||||||
#ifdef DEBUG_MEMCPY
|
#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
|
#else
|
||||||
#define DPRINTF(fmt, args...)
|
#define DPRINTF(fmt, args...)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue