mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix __FUNCTION__ use in ip_nat_helper.c
@ 2002-09-01  7:49 rudmer
  2002-09-01  7:49 ` Rudmer van Dijk
  2002-09-01  7:50 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: rudmer @ 2002-09-01  7:49 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel

Hi,
I got the following errors:

  CC     net/ipv4/netfilter/ip_nat_helper.o
ip_nat_helper.c: In function `ip_nat_helper_register':
ip_nat_helper.c:385: parse error before string constant
ip_nat_helper.c: In function `ip_nat_helper_unregister':
ip_nat_helper.c:470: parse error before string constant
ip_nat_helper.c:471: warning: left-hand operand of comma expression has no effect
ip_nat_helper.c:471: parse error before `)'
make[3]: *** [ip_nat_helper.o] Error 1
make[2]: *** [netfilter] Error 2
make[1]: *** [ipv4] Error 2
make: *** [net] Error 2

both due to bad use of __FUNCTION__ patch follows

	Rudmer

--- linux-2.5.33/net/ipv4/netfilter/ip_nat_helper.c.orig	Sun Sep  1 09:23:54 2002
+++ linux-2.5.33/net/ipv4/netfilter/ip_nat_helper.c	Sun Sep  1 09:28:13 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);
 	}
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix __FUNCTION__ use in ip_nat_helper.c
  2002-09-01  7:49 [PATCH] fix __FUNCTION__ use in ip_nat_helper.c rudmer
@ 2002-09-01  7:49 ` Rudmer van Dijk
  2002-09-01  7:50 ` David S. Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Rudmer van Dijk @ 2002-09-01  7:49 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel


>Hi,
>I got the following errors:
>
>both due to bad use of __FUNCTION__ patch follows
forgot to mention it, but it is against 2.5.33

         Rudmer


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix __FUNCTION__ use in ip_nat_helper.c
  2002-09-01  7:49 [PATCH] fix __FUNCTION__ use in ip_nat_helper.c rudmer
  2002-09-01  7:49 ` Rudmer van Dijk
@ 2002-09-01  7:50 ` David S. Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2002-09-01  7:50 UTC (permalink / raw)
  To: rudmer; +Cc: rusty, linux-kernel

   From: rudmer@legolas.dynup.net
   Date: 1 Sep 2002 07:49:25 -0000
   
   both due to bad use of __FUNCTION__ patch follows

Rusty no need to take this, I pushed it to Linus about
an hour ago.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-01  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-01  7:49 [PATCH] fix __FUNCTION__ use in ip_nat_helper.c rudmer
2002-09-01  7:49 ` Rudmer van Dijk
2002-09-01  7:50 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®