sipvoipprovider/inc/svplogger.h
changeset 2 7b872347d83b
parent 0 a4daefaec16c
--- a/sipvoipprovider/inc/svplogger.h	Tue Jan 26 11:50:49 2010 +0200
+++ b/sipvoipprovider/inc/svplogger.h	Tue Feb 02 00:05:57 2010 +0200
@@ -27,6 +27,7 @@
 
 #include <e32svr.h>
 #include <e32cmn.h>
+#include "svpconsts.h"
 
 /*****************************************************
 * Format string for adding component to prints.
@@ -41,7 +42,7 @@
  */
 static inline void PrintL( const TDesC& aStr )
     {
-    HBufC* line = HBufC::NewLC( 256 );
+    HBufC* line = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr( line->Des() );
     ptr.Format( KSVPPrintFormatString(), &KComponent(), &aStr );   
     RDebug::Print( line->Des() );
@@ -57,11 +58,11 @@
  */
 static inline void PrintL( const TDesC& aStr, const TInt& aTInt )
     {
-    HBufC* line1 = HBufC::NewLC( 256 );
+    HBufC* line1 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr1( line1->Des() );
     ptr1.Format( aStr, aTInt );
     
-    HBufC* line2 = HBufC::NewLC( 256 );
+    HBufC* line2 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr2( line2->Des() );
     ptr2.Format( KSVPPrintFormatString(), &KComponent(), line1 );   
     RDebug::Print( line2->Des() );
@@ -77,11 +78,11 @@
  */
 static inline void PrintL( const TDesC& aStr, const TAny* aPtr )
     {
-    HBufC* line1 = HBufC::NewLC( 256 );
+    HBufC* line1 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr1( line1->Des() );
     ptr1.Format( aStr, aPtr );
     
-    HBufC* line2 = HBufC::NewLC( 256 );
+    HBufC* line2 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr2( line2->Des() );
     ptr2.Format( KSVPPrintFormatString(), &KComponent(), line1 ); 
     RDebug::Print( line2->Des() );
@@ -99,11 +100,11 @@
                            const TInt& aTInt1,
                            const TInt& aTInt2 )
     {
-    HBufC* line1 = HBufC::NewLC( 256 );
+    HBufC* line1 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr1( line1->Des() );
     ptr1.Format( aStr, aTInt1, aTInt2 );
         
-    HBufC* line2 = HBufC::NewLC( 256 );
+    HBufC* line2 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr2( line2->Des() );
     ptr2.Format( KSVPPrintFormatString(), &KComponent(), line1 );   
     RDebug::Print( line2->Des() );
@@ -123,11 +124,11 @@
                            const TInt& aTInt,
                            const TDesC* aStr2 )
     {
-    HBufC* line1 = HBufC::NewLC( 256 );
+    HBufC* line1 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr1( line1->Des() );
     ptr1.Format( aStr1, aTInt, aStr2 );
         
-    HBufC* line2 = HBufC::NewLC( 256 );
+    HBufC* line2 = HBufC::NewLC( KSvpMaxDebugBufferSize );
     TPtr ptr2( line2->Des() );
     ptr2.Format( KSVPPrintFormatString(), &KComponent(), line1 );   
     RDebug::Print( line2->Des() );