All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [patch] __FUNCTION__ string concatenation
@ 2004-07-05 12:00 Clemens Buchacher
  2004-09-19 15:14 ` [Kernel-janitors] [PATCH] " Clemens Buchacher
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Clemens Buchacher @ 2004-07-05 12:00 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

I've replaced the __FUNCTION__ string concatenation with the
%s placeholder and a printf parameter in
drivers/net/wireless/prism65/islpci_mgt.h, as suggested in the TODO
list.

I don't have the hardware to do a run-time check. It should not pose any
problems though.

[-- Attachment #2: func_cat.patch --]
[-- Type: text/plain, Size: 1007 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/07/04 22:08:37+02:00 drizzd@aon.at 
#   __FUNCTION__ string concatenation is deprecated
# 
# drivers/net/wireless/prism54/islpci_mgt.h
#   2004/07/03 17:18:20+02:00 drizzd@aon.at +1 -1
#   __FUNCTION__ string concatenation is deprecated
# 
diff -Nru a/drivers/net/wireless/prism54/islpci_mgt.h b/drivers/net/wireless/prism54/islpci_mgt.h
--- a/drivers/net/wireless/prism54/islpci_mgt.h	2004-07-05 13:33:10 +02:00
+++ b/drivers/net/wireless/prism54/islpci_mgt.h	2004-07-05 13:33:10 +02:00
@@ -31,7 +31,7 @@
 #define K_DEBUG(f, m, args...) do { if(f & m) printk(KERN_DEBUG args); } while(0)
 #define DEBUG(f, args...) K_DEBUG(f, pc_debug, args)
 
-#define TRACE(devname)   K_DEBUG(SHOW_TRACING, VERBOSE, "%s:  -> " __FUNCTION__ "()\n", devname)
+#define TRACE(devname)   K_DEBUG(SHOW_TRACING, VERBOSE, "%s:  -> %s()\n", devname, __FUNCTION__)
 
 extern int pc_debug;
 #define init_wds 0	/* help compiler optimize away dead code */

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2004-09-22 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-05 12:00 [Kernel-janitors] [patch] __FUNCTION__ string concatenation Clemens Buchacher
2004-09-19 15:14 ` [Kernel-janitors] [PATCH] " Clemens Buchacher
2004-09-19 15:15 ` Clemens Buchacher
2004-09-19 15:25 ` Clemens Buchacher
2004-09-20 16:51 ` maximilian attems
2004-09-20 16:59 ` maximilian attems
2004-09-22 13:35 ` Clemens Buchacher
2004-09-22 15:36 ` Steve Longerbeam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.