Skip to contentSkip to conversation

__FUNCTION__ pasting fix for ip_nat_helper.c, 2.5.33

PATCH New Harald Welte 1 participant 1 message Sep 7, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 __FUNCTION__ pasting fix for ip_nat_helper.c, 2.5.33

Hi Dave!

Please apply the following patch to make our __FUNCTION__ usage compatible with latest gcc versions.

Thanks.

Signature · 5 lines
Live long and prosper
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Please see the patch below.

- James

Signature · 29 lines
James Morris
<[email protected]>

diff -urN -X dontdiff linux-2.5.33.w1/net/ipv4/netfilter/ip_nat_helper.c linux-2.5.33.w1-nathelp/net/ipv4/netfilter/ip_nat_helper.c
--- linux-2.5.33.w1/net/ipv4/netfilter/ip_nat_helper.c	Fri Aug  2 07:16:10 2002
+++ linux-2.5.33.w1-nathelp/net/ipv4/netfilter/ip_nat_helper.c	Sun Sep  1 12:25:01 2002
@@ -382,9 +382,9 @@
 			const char *tmp = me->me->name;
 			
 			if (strlen(tmp) + 6 > MODULE_MAX_NAMELEN) {
-				printk(__FUNCTION__ ": unable to "
+				printk("%s: unable to "
 				       "compute conntrack helper name "
-				       "from %s\n", tmp);
+				       "from %s\n", __FUNCTION__, tmp);
 				return -EBUSY;
 			}
 			tmp += 6;
@@ -467,7 +467,8 @@
 		    && ct_helper->me) {
 			__MOD_DEC_USE_COUNT(ct_helper->me);
 		} else 
-			printk(__FUNCTION__ ": unable to decrement usage count"
-			       " of conntrack helper %s\n", me->me->name);
+			printk("%s: unable to decrement usage count of "
+			       "conntrack helper %s\n", __FUNCTION__,
+			       me->me->name);
 	}
 }