* [PATCH 2.4.22-pre5] cpia.c compile-warning fix
@ 2003-07-14 19:08 Michael Buesch
0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2003-07-14 19:08 UTC (permalink / raw)
To: Alan Cox; +Cc: linux kernel mailing list, Marcelo Tosatti
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
this patch fixes these compiletime warnings:
cpia.c:1912: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
cpia.c:1918: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
cpia.c:1924: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
cpia.c:1930: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
cpia.c:1949: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
cpia.c:1956: Warnung: concatenation of string literals with __FUNCTION__ is deprecated
- --- drivers/media/video/cpia.h.orig 2003-07-14 20:31:30.000000000 +0200
+++ drivers/media/video/cpia.h 2003-07-14 21:03:49.000000000 +0200
@@ -393,12 +393,14 @@
/* ErrorCode */
#define ERROR_FLICKER_BELOW_MIN_EXP 0x01 /*flicker exposure got below minimum exposure */
- -#define ALOG(lineno,fmt,args...) printk(fmt,lineno,##args)
- -#define LOG(fmt,args...) ALOG((__LINE__),KERN_INFO __FILE__":"__FUNCTION__"(%d):"fmt,##args)
+#define ALOG(function,lineno,fmt,args...) printk(fmt, function, lineno, ##args)
+#define LOG(fmt,args...) ALOG((__FUNCTION__), (__LINE__), \
+ KERN_INFO __FILE__":%s(%d):"fmt, ##args)
#ifdef _CPIA_DEBUG_
- -#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)
- -#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):"__FUNCTION__"(%d):"fmt,##args)
+#define ADBG(function,lineno,fmt,args...) printk(fmt, jiffies, function, lineno, ##args)
+#define DBG(fmt,args...) ADBG((__FUNCTION__), (__LINE__), \
+ KERN_DEBUG __FILE__"(%ld):%s(%d):"fmt, ##args)
#else
#define DBG(fmn,args...) do {} while(0)
#endif
- --
Regards Michael Buesch
http://www.8ung.at/tuxsoft
21:03:56 up 2:14, 3 users, load average: 1.10, 1.11, 1.23
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD4DBQE/Ev+6oxoigfggmSgRAqyZAJjHwQmFBfWP9eJuOyUTN3fU/qSYAJ9nFh0I
24mG+0/qdSLulRw159uMqw==
=IJ9d
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-14 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 19:08 [PATCH 2.4.22-pre5] cpia.c compile-warning fix Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).