supl/locationsuplfw/utilities/src/epos_csupltrace.cpp
branchRCL_3
changeset 45 6b6920c56e2f
parent 44 2b4ea9893b66
child 55 ea98413ce11f
equal deleted inserted replaced
44:2b4ea9893b66 45:6b6920c56e2f
   138 EXPORT_C void CSuplTrace::Log( 
   138 EXPORT_C void CSuplTrace::Log( 
   139     const TDesC& aTraceLogDir,
   139     const TDesC& aTraceLogDir,
   140     const TDesC& aTraceLogFile,
   140     const TDesC& aTraceLogFile,
   141     TRefByValue<const TDesC> aFmt, ... )
   141     TRefByValue<const TDesC> aFmt, ... )
   142     {
   142     {
   143     //coverity[var_decl]
   143     // coverity[var_decl : FALSE]
   144     VA_LIST list;
   144     VA_LIST list;
   145     VA_START( list, aFmt );
   145     VA_START( list, aFmt );
   146 
   146 
   147     RProcess process;
   147     RProcess process;
   148     HBufC* buf = HBufC::New( KMaxTraceLength );
   148     HBufC* buf = HBufC::New( KMaxTraceLength );
   149     if ( buf )
   149     if ( buf )
   150     	{
   150     	{
   151     	TPtr ptr( buf->Des() );
   151     	TPtr ptr( buf->Des() );
   152         _LIT( KPrefix, "[EPos/0x%LX]: ");
   152         _LIT( KPrefix, "[EPos/0x%LX]: ");
   153         ptr.Format( KPrefix, process.Id().Id() );
   153         ptr.Format( KPrefix, process.Id().Id() );
   154         //coverity[uninit_use_in_call]
       
   155 	    ptr.AppendFormatList( aFmt, list );
   154 	    ptr.AppendFormatList( aFmt, list );
   156 	
   155 	
   157 	    RDebug::RawPrint( ptr );
   156 	    RDebug::RawPrint( ptr );
   158 	    RFileLogger::Write( aTraceLogDir, aTraceLogFile, EFileLoggingModeAppend, ptr );
   157 	    RFileLogger::Write( aTraceLogDir, aTraceLogFile, EFileLoggingModeAppend, ptr );
   159 
   158