Commit 4126a8f5 authored by Harvey Harrison's avatar Harvey Harrison Committed by Mauro Carvalho Chehab

V4L/DVB (7528): media/video/usbvideo replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent a79d13b3
...@@ -57,7 +57,7 @@ static struct usbvideo *cams; ...@@ -57,7 +57,7 @@ static struct usbvideo *cams;
static int debug; static int debug;
#define DEBUG(n, format, arg...) \ #define DEBUG(n, format, arg...) \
if (n <= debug) { \ if (n <= debug) { \
printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __FUNCTION__ , ## arg); \ printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __func__ , ## arg); \
} }
#else #else
#define DEBUG(n, arg...) #define DEBUG(n, arg...)
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
static int debug; static int debug;
#define DEBUG(n, format, arg...) \ #define DEBUG(n, format, arg...) \
if (n <= debug) { \ if (n <= debug) { \
printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __FUNCTION__ , ## arg); \ printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __func__ , ## arg); \
} }
#else #else
#define DEBUG(n, arg...) #define DEBUG(n, arg...)
......
This diff is collapsed.
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
// #define VICAM_DEBUG // #define VICAM_DEBUG
#ifdef VICAM_DEBUG #ifdef VICAM_DEBUG
#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, __FUNCTION__, lineno, ##args) #define ADBG(lineno,fmt,args...) printk(fmt, jiffies, __func__, lineno, ##args)
#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):%s (%d):"fmt,##args) #define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):%s (%d):"fmt,##args)
#else #else
#define DBG(fmn,args...) do {} while(0) #define DBG(fmn,args...) do {} while(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment