A new instance of inappropriate ## pasting in a new debug.h file - added to bug 2961 GCC_SURGE
authorWilliam Roberts <williamr@symbian.org>
Fri, 23 Jul 2010 12:03:15 +0100
branchGCC_SURGE
changeset 70 8ba4a4a03bae
parent 63 ef2686f7597e
child 72 1c7e64c358fe
A new instance of inappropriate ## pasting in a new debug.h file - added to bug 2961
usbclasses/usbobexclasscontroller/inc/debug.h
--- a/usbclasses/usbobexclasscontroller/inc/debug.h	Thu Jul 22 16:44:03 2010 +0100
+++ b/usbclasses/usbobexclasscontroller/inc/debug.h	Fri Jul 23 12:03:15 2010 +0100
@@ -54,19 +54,19 @@
 // s: c string. 
 #define LOG(s) RFileLogger::WriteFormat( KUsbLogDir, \
                 KUsbLogFile, EFileLoggingModeAppend, \
-                DESC8( "["MODULE_NAME"] "##s ) )
+                DESC8( "["MODULE_NAME"] " s ) )
 
 // s: c string contains "%x"
 // v: varaible corresponding to %x
 #define LOG1(s, v) RFileLogger::WriteFormat( KUsbLogDir, \
                 KUsbLogFile, EFileLoggingModeAppend, \
-                DESC8( "["MODULE_NAME"] "##s ), v)
+                DESC8( "["MODULE_NAME"] " s ), v)
 // s: c string contains "%x%y"
 // v1: varaible corresponding to %x
 // v2: varaible corresponding to %y
 #define LOG2(s, v1, v2) RFileLogger::WriteFormat( KUsbLogDir, \
                 KUsbLogFile, EFileLoggingModeAppend, \
-                DESC8( "["MODULE_NAME"] "##s ), v1, v2)
+                DESC8( "["MODULE_NAME"] " s ), v1, v2)
 
 // s: c string contains "%x%y%z"
 // v1: varaible corresponding to %x
@@ -74,7 +74,7 @@
 // v3: varaible corresponding to %z
 #define LOG3(s, v1, v2, v3) RFileLogger::WriteFormat( KUsbLogDir, \
             KUsbLogFile, EFileLoggingModeAppend, \
-            DESC8( "["MODULE_NAME"] "##s ), v1, v2, v3 )
+            DESC8( "["MODULE_NAME"] " s ), v1, v2, v3 )
 
 class TFuncLogger
     {
@@ -102,11 +102,11 @@
 // Paramters same as above.
 #define LOG( str ) { RDebug::Printf( "["MODULE_NAME"] %s", str  ); }
 
-#define LOG1( s, v ) { RDebug::Printf( "["MODULE_NAME"] "##s , v ); }
+#define LOG1( s, v ) { RDebug::Printf( "["MODULE_NAME"] " s , v ); }
 
-#define LOG2( s, v1,v2 ) { RDebug::Printf( "["MODULE_NAME"] "##s , v1, v2 ); }
+#define LOG2( s, v1,v2 ) { RDebug::Printf( "["MODULE_NAME"] " s , v1, v2 ); }
 
-#define LOG3( s, v1, v2, v3 ) { RDebug::Printf( "["MODULE_NAME"] "##s , \
+#define LOG3( s, v1, v2, v3 ) { RDebug::Printf( "["MODULE_NAME"] " s , \
         v1, v2, v3); }
 
 inline void LogBuf(const TDesC8& aBuf8)