usbengines/usblocodplugin/inc/debug.h
branchGCC_SURGE
changeset 72 1c7e64c358fe
parent 57 62e6d990246c
equal deleted inserted replaced
70:8ba4a4a03bae 72:1c7e64c358fe
   100 #include <e32debug.h>
   100 #include <e32debug.h>
   101 
   101 
   102 // Paramters same as above.
   102 // Paramters same as above.
   103 #define LOG( str ) { RDebug::Printf( "["MODULE_NAME"] %s", str  ); }
   103 #define LOG( str ) { RDebug::Printf( "["MODULE_NAME"] %s", str  ); }
   104 
   104 
   105 #define LOG1( s, v ) { RDebug::Printf( "["MODULE_NAME"] "##s , v ); }
   105 #define LOG1( s, v ) { RDebug::Printf( "["MODULE_NAME"] " s , v ); }
   106 
   106 
   107 #define LOG2( s, v1,v2 ) { RDebug::Printf( "["MODULE_NAME"] "##s , v1, v2 ); }
   107 #define LOG2( s, v1,v2 ) { RDebug::Printf( "["MODULE_NAME"] " s , v1, v2 ); }
   108 
   108 
   109 #define LOG3( s, v1, v2, v3 ) { RDebug::Printf( "["MODULE_NAME"] "##s , \
   109 #define LOG3( s, v1, v2, v3 ) { RDebug::Printf( "["MODULE_NAME"] " s , \
   110         v1, v2, v3); }
   110         v1, v2, v3); }
   111 
   111 
   112 inline void LogBuf(const TDesC8& aBuf8)
   112 inline void LogBuf(const TDesC8& aBuf8)
   113     {
   113     {
   114     LOG1("Buffer length = %d Buffer content:", aBuf8.Length());
   114     LOG1("Buffer length = %d Buffer content:", aBuf8.Length());