From b8d1e07edc8d57883bf4b6ca70228b5a9e6b98b2 Mon Sep 17 00:00:00 2001 From: Moyster Date: Sat, 23 Sep 2017 03:10:48 +0200 Subject: misc: replace __FUNCTION__ by __function__ result of : git grep -l '__FUNCTION__' | xargs sed -i 's/__FUNCTION__/__func__/g' --- include/mach/mt_freqhopping_drv.h | 2 +- include/mach/mt_gpio_core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/mach') diff --git a/include/mach/mt_freqhopping_drv.h b/include/mach/mt_freqhopping_drv.h index c8f84316d..639a7b79b 100644 --- a/include/mach/mt_freqhopping_drv.h +++ b/include/mach/mt_freqhopping_drv.h @@ -88,7 +88,7 @@ struct mt_fh_hal_driver* mt_get_fh_hal_drv(void); #define FH_BUG_ON(x) \ do { \ if((x)){ \ - printk("BUGON %s:%d %s:%d\n",__FUNCTION__,__LINE__,current->comm,current->pid); \ + printk("BUGON %s:%d %s:%d\n",__func__,__LINE__,current->comm,current->pid); \ } \ } while(0); diff --git a/include/mach/mt_gpio_core.h b/include/mach/mt_gpio_core.h index 02f391608..a44582b49 100644 --- a/include/mach/mt_gpio_core.h +++ b/include/mach/mt_gpio_core.h @@ -24,7 +24,7 @@ #define GPIOLOG(fmt, arg...) printk(GPIOTAG fmt, ##arg) #define GPIOMSG(fmt, arg...) printk(fmt, ##arg) #define GPIOERR(fmt, arg...) printk(KERN_ERR GPIOTAG "%5d: "fmt, __LINE__, ##arg) -#define GPIOFUC(fmt, arg...) /* printk(GPIOTAG "%s\n", __FUNCTION__) */ +#define GPIOFUC(fmt, arg...) /* printk(GPIOTAG "%s\n", __func__) */ /*----------------------------------------------------------------------------*/ /* Error Code No. */ #define RSUCCESS 0 -- cgit v1.2.3