From 1f7f002d1bc77486b296879e08edceb63c9d64d4 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 19 Jan 2003 10:36:29 +0000 Subject: use __FUNCTION__ as argument instead of string constant (deprecated). --- include/ebtables_u.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3