public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias Juchem <lists@konfido.de>
To: netfilter-devel@lists.netfilter.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.4] Trivial: kill __FUNCTION__ warnings in ip_nat_helper.c
Date: Thu, 19 Jun 2003 13:30:09 +0200	[thread overview]
Message-ID: <200306191326.09187.lists@konfido.de> (raw)

Hi there.

The attached patch kills two warnings (produced by gcc 3.3):

ip_nat_helper.c:493: warning: concatenation of string literals with 
__FUNCTION__ is deprecated
ip_nat_helper.c:577: warning: concatenation of string literals with 
__FUNCTION__ is deprecated

Diff is against 2.4.21.

Regards,
 Matthias

diff -urN linux-2.4.21-vanilla/net/ipv4/netfilter/ip_nat_helper.c 
linux-2.4.21/net/ipv4/netfilter/ip_nat_helper.c
--- linux-2.4.21-vanilla/net/ipv4/netfilter/ip_nat_helper.c     2003-06-19 
11:53:43.000000000 +0200
+++ linux-2.4.21/net/ipv4/netfilter/ip_nat_helper.c     2003-06-19 
12:37:26.000000000 +0200
@@ -488,9 +488,9 @@
                        const char *tmp = me->me->name;

                        if (strlen(tmp) + 6 > MODULE_MAX_NAMELEN) {
-                               printk(__FUNCTION__ ": unable to "
-                                      "compute conntrack helper name "
-                                      "from %s\n", tmp);
+                               printk("%s: unable to compute conntrack "
+                                      "helper name from %s\n",
+                                      __FUNCTION__, tmp);
                                return -EBUSY;
                        }
                        tmp += 6;
@@ -573,7 +573,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);
        }
 }


                 reply	other threads:[~2003-06-19 11:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306191326.09187.lists@konfido.de \
    --to=lists@konfido.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox