equal
deleted
inserted
replaced
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; |