mmappcomponents/mmmtpdataprovider/inc/cmmmtpdpperflog.inl
branchRCL_3
changeset 17 780c925249c1
parent 14 05b0d2323768
child 28 f56ec6ce2732
equal deleted inserted replaced
15:d240f0a77280 17:780c925249c1
    69 void CMmMtpDpPerfLog::WriteFormat( TRefByValue<const TDesC> aFmt, ... )
    69 void CMmMtpDpPerfLog::WriteFormat( TRefByValue<const TDesC> aFmt, ... )
    70     {
    70     {
    71     VA_LIST list;
    71     VA_LIST list;
    72     VA_START( list, aFmt );
    72     VA_START( list, aFmt );
    73 
    73 
    74     TBuf<KMtpLogBufferSize> buf;
    74     HBufC* buf = HBufC::New( KMtpLogBufferSize );
    75     
    75     if ( buf )
    76     buf.AppendFormatList( aFmt, list, &iOverflowHandler );
    76         {
    77     Write( buf );
    77         buf->Des().AppendFormatList( aFmt, list, &iOverflowHandler );
       
    78         Write( *buf );
       
    79         delete buf;
       
    80         }
    78     }
    81     }
    79 
    82 
    80 void CMmMtpDpPerfLog::Start( const TDesC& aDescription )
    83 void CMmMtpDpPerfLog::Start( const TDesC& aDescription )
    81     {
    84     {
    82     TInt index = 0;
    85     TInt index = 0;