From: Bart De Schuymer Date: Sun, 19 Jan 2003 10:36:29 +0000 (+0000) Subject: use __FUNCTION__ as argument instead of string X-Git-Tag: submit/upstream/20140618.160417~285 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f7f002d1bc77486b296879e08edceb63c9d64d4;p=platform%2Fupstream%2Febtables.git use __FUNCTION__ as argument instead of string constant (deprecated). --- diff --git a/include/ebtables_u.h b/include/ebtables_u.h index c1af715..d4b2bc7 100644 --- a/include/ebtables_u.h +++ b/include/ebtables_u.h @@ -212,8 +212,8 @@ void __print_bug(char *file, int line, char *format, ...); #define print_bug(format, args...) \ __print_bug(__FILE__, __LINE__, format, ##args) #define print_error(format,args...) {printf(format".\n",##args); exit(-1);} -#define print_memory() {printf("Ebtables: " __FILE__ " " __FUNCTION__ \ - " %d :Out of memory.\n", __LINE__); exit(-1);} +#define print_memory() {printf("Ebtables: " __FILE__ \ + " %s %d :Out of memory.\n", __FUNCTION__, __LINE__); exit(-1);} /* used for keeping the rule counters right during rule adds or deletes */ #define CNT_NORM 0