[ALSA] sound: replace remaining __FUNCTION__ occurences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
24982c5f7f
commit
9bf8e7ddea
@@ -194,11 +194,11 @@ static void dbgassert(const char *fcn, int line, const char *expr)
|
||||
* DBGRV - debug print function return when verbose
|
||||
*/
|
||||
|
||||
#define ASSERT(e) ((e) ? (void) 0 : dbgassert(__FUNCTION__, __LINE__, #e))
|
||||
#define ASSERT(e) ((e) ? (void) 0 : dbgassert(__func__, __LINE__, #e))
|
||||
#define DBGDO(x) x
|
||||
#define DBGX(fmt, args...) (in_interrupt() ? 0 : printk(KERN_ERR fmt, ##args))
|
||||
#define DBGP(fmt, args...) (DBGX("%s: " fmt, __FUNCTION__ , ##args))
|
||||
#define DBGE(fmt, args...) (DBGX("%s" fmt, __FUNCTION__ , ##args))
|
||||
#define DBGP(fmt, args...) (DBGX("%s: " fmt, __func__ , ##args))
|
||||
#define DBGE(fmt, args...) (DBGX("%s" fmt, __func__ , ##args))
|
||||
#define DBGC(rtn) (DBGP("calling %s\n", rtn))
|
||||
#define DBGR() (DBGP("returning\n"))
|
||||
#define DBGXV(fmt, args...) (shut_up ? 0 : DBGX(fmt, ##args))
|
||||
|
Reference in New Issue
Block a user