From: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Dag Brattli <dag@brattli.net>,
Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: [PATCH][resend] 12/13 2.4.22-rc2 fix __FUNCTION__ warnings net/irda [6/7]
Date: Fri, 22 Aug 2003 04:35:03 -0300 [thread overview]
Message-ID: <20030822043503.4845bbdf.vmlinuz386@yahoo.com.ar> (raw)
Hi people,
this patch fix the warning: concatenation of string literals with __FUNCTION__ is deprecated
irnet.h | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
--- linux-2.4.22-rc2/net/irda/irnet/irnet.h 2003-06-13 11:51:39.000000000 -0300
+++ linux-2.4.22-rc2-fix/net/irda/irnet/irnet.h 2003-08-21 00:08:28.000000000 -0300
@@ -322,29 +322,29 @@
* compiler will optimise away the if() in all cases.
*/
/* All error messages (will show up in the normal logs) */
-#define DERROR(dbg, args...) \
- {if(DEBUG_##dbg) \
- printk(KERN_INFO "irnet: " __FUNCTION__ "(): " args);}
+#define DERROR(dbg, format, args...) \
+ {if(DEBUG_##dbg) \
+ printk(KERN_INFO "irnet: %s(): " format, __FUNCTION__ , ##args);}
/* Normal debug message (will show up in /var/log/debug) */
-#define DEBUG(dbg, args...) \
- {if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: " __FUNCTION__ "(): " args);}
+#define DEBUG(dbg, format, args...) \
+ {if(DEBUG_##dbg) \
+ printk(KERN_DEBUG "irnet: %s(): " format, __FUNCTION__ , ##args);}
/* Entering a function (trace) */
-#define DENTER(dbg, args...) \
- {if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: ->" __FUNCTION__ args);}
+#define DENTER(dbg, format, args...) \
+ {if(DEBUG_##dbg) \
+ printk(KERN_DEBUG "irnet: -> %s" format, __FUNCTION__ , ##args);}
/* Entering and exiting a function in one go (trace) */
-#define DPASS(dbg, args...) \
- {if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: <>" __FUNCTION__ args);}
+#define DPASS(dbg, format, args...) \
+ {if(DEBUG_##dbg) \
+ printk(KERN_DEBUG "irnet: <>%s" format, __FUNCTION__ , ##args);}
/* Exiting a function (trace) */
-#define DEXIT(dbg, args...) \
- {if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: <-" __FUNCTION__ "()" args);}
+#define DEXIT(dbg, format, args...) \
+ {if(DEBUG_##dbg) \
+ printk(KERN_DEBUG "irnet: <-%s()" format, __FUNCTION__ , ##args);}
/* Exit a function with debug */
#define DRETURN(ret, dbg, args...) \
ciao
djgera
--
Gerardo Exequiel Pozzi ( djgera )
http://www.vmlinuz.com.ar http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D
reply other threads:[~2003-08-22 7:42 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=20030822043503.4845bbdf.vmlinuz386@yahoo.com.ar \
--to=vmlinuz386@yahoo.com.ar \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dag@brattli.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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
all inboxes | Powered by JetHome®