void Logging::Printf(const TDesC8& /*aSubTag*/, TLogEntryType aType, TRefByValue<const TDesC8> aFmt, VA_LIST& aList) { TBuf8<250> buf; TLogIgnoreOverflow8 overflowHandler; buf.AppendFormatList(aFmt, aList, &overflowHandler); UTracePfAny(KPrimaryFilter, KText, ETrue, EFalse, aType, buf.Ptr(), buf.Size()); }
void CImapIO::LogText(TRefByValue<const TDesC8> aFmt,...) { VA_LIST list; VA_START(list,aFmt); TBuf8<1024> aBuf; aBuf.AppendFormatList(aFmt,list); LogText(aBuf); }
void CTestStepC32Util::Log(TRefByValue<const TDesC8> aFormat, ...) { VA_LIST vaList; VA_START( vaList, aFormat ); TTruncateOverflow8 truncateOverflow; TBuf8<512> buf; buf.AppendFormatList( aFormat, vaList, &truncateOverflow ); Logger().Write(buf); }
EXPORT_C void TcLog::WriteFormat( TRefByValue< const TDesC8 > aFormat, ... ) { VA_LIST list; VA_START( list, aFormat ); TBuf8< KTcBufferSize > buf; TTcDes8Overflow handler; buf.AppendFormatList( aFormat, list, &handler ); Write( buf ); }
void CSWICertStoreTool::LogL(TRefByValue<const TDesC8> aFmt, ...) { TBuf8<KMaxLineLength> buf; VA_LIST args; VA_START(args, aFmt); buf.AppendFormatList(aFmt, args); VA_END(args); User::LeaveIfError(iLogFile.Write(buf)); User::LeaveIfError(iLogFile.Write(KNewLine)); User::LeaveIfError(iLogFile.Flush()); }
void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...) { VA_LIST list; VA_START(list, aFmt); TBuf8<0x100> buf; buf.AppendFormatList(aFmt, list); TBuf<0x100> wideBuf; wideBuf.Copy(buf); iConsole.Write(wideBuf); (void)RDebug::Print(wideBuf); }
void CTestStepESockUtil::Log(TRefByValue<const TDesC8> aFormat, ...) { VA_LIST vaList; VA_START( vaList, aFormat ); TTruncateOverflow8 truncateOverflow; TBuf8<512> buf; buf.AppendFormatList( aFormat, vaList, &truncateOverflow ); TBuf<512> dispBuf; dispBuf.Copy(buf); // write to the console CTestStep::Log(_L("%S"), &dispBuf); }
/** Prints a formatted string by outputting a trace packet with the Trace ID KFormatPrintf. If the specified string is too long to fit into a single trace packet a multipart trace is generated. @deprecated @param aContext The trace packet context. @see TTraceContext @param aFmt The format string. This must not be longer than 256 characters. @param ... A variable number of arguments to be converted to text as dictated by the format string. @return The trace packet was/was not output. @See BTrace::TMultipart */ EXPORT_C TBool OstPrintf(const TTraceContext& aContext, TRefByValue<const TDesC8> aFmt,...) { if(IsTraceActive(aContext)) { GET_PC(pc); TTruncateOverflow8 overflow; VA_LIST list; VA_START(list,aFmt); TBuf8<KMaxPrintfSize> buf; // coverity[uninit_use_in_call : FALSE] buf.AppendFormatList(aFmt,list,&overflow); return OST_SECONDARY_ANY(aContext.GroupId(), aContext.ComponentId(), aContext.HasThreadIdentification(), aContext.HasProgramCounter(), pc, KFormatPrintf, buf.Ptr(), buf.Size()); } return EFalse; }
void CActiveConsole::WriteNoReturn(TRefByValue<const TDesC8> aFmt, ...) { OstTraceFunctionEntry0( CACTIVECONSOLE_WRITENORETURN_ENTRY ); VA_LIST list; VA_START(list, aFmt); TBuf8<0x100> buf; buf.AppendFormatList(aFmt, list); TBuf<0x100> wideBuf; wideBuf.Copy(buf); iConsole.Write(wideBuf); RDebug::Print(wideBuf); OstTraceFunctionExit0( CACTIVECONSOLE_WRITENORETURN_EXIT ); }
void CMainControlEngine::WriteLog8(TRefByValue<const TDesC8> aFmt, ...) { #ifdef __WRITE_LOG__ //UtilityTools::WriteLogsL(_L("WriteLog8")); TBuf8<400> tBuf; VA_LIST list; VA_START(list,aFmt); tBuf.Zero(); tBuf.AppendFormatList(aFmt,list); VA_END(list); TBuf<64> time16; TBuf8<64> time8; TTime tTime; tTime.HomeTime(); tTime.FormatL(time16, _L("%D%M%Y%2/%3 %H:%T:%S ")); time8.Copy(time16); iFile.Write(time8); iFile.Write(tBuf); iFile.Write(_L8("\x0a\x0d")); //UtilityTools::WriteLogsL(_L("WriteLog8 End")); #endif }