Commit cece933994428974f7a0ee1e8843ba5bd0b18563

Authored by Harvey Harrison
Committed by Jens Axboe
1 parent ee86418d39

block: replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -79,9 +79,9 @@
79 79  
80 80 /* note: prints function name for you */
81 81 #ifdef CARM_DEBUG
82   -#define DPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args)
  82 +#define DPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args)
83 83 #ifdef CARM_VERBOSE_DEBUG
84   -#define VPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args)
  84 +#define VPRINTK(fmt, args...) printk(KERN_ERR "%s: " fmt, __func__, ## args)
85 85 #else
86 86 #define VPRINTK(fmt, args...)
87 87 #endif /* CARM_VERBOSE_DEBUG */
... ... @@ -96,7 +96,7 @@
96 96 #define assert(expr) \
97 97 if(unlikely(!(expr))) { \
98 98 printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \
99   - #expr,__FILE__,__FUNCTION__,__LINE__); \
  99 + #expr, __FILE__, __func__, __LINE__); \
100 100 }
101 101 #endif
102 102