From 12f25a64cd5e2b8ae6ec673eddb662999d6bd759 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). --- userspace/ebtables2/include/ebtables_u.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userspace') diff --git a/userspace/ebtables2/include/ebtables_u.h b/userspace/ebtables2/include/ebtables_u.h index c1af715..d4b2bc7 100644 --- a/userspace/ebtables2/include/ebtables_u.h +++ b/userspace/ebtables2/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