stif/TestInterface/src/TestModuleIf.cpp
branchRCL_3
changeset 8 cfe32394fcd5
parent 0 a03f92240627
child 16 8f8df8006c40
equal deleted inserted replaced
7:8a14024f954a 8:cfe32394fcd5
   277         }
   277         }
   278 
   278 
   279     VA_LIST list;
   279     VA_LIST list;
   280     VA_START(list,aFmt);
   280     VA_START(list,aFmt);
   281     TName aBuf;
   281     TName aBuf;
       
   282     RBuf buf;
       
   283     TInt ret = buf.Create(1024);
       
   284     if(ret != KErrNone)
       
   285         {
       
   286         __RDEBUG((_L("STF: Printf: Buffer creation failed [%d]"), ret));
       
   287         return;
       
   288         }
   282 
   289 
   283     // Cut the description length
   290     // Cut the description length
   284     TInt len = aDefinition.Length();
   291     TInt len = aDefinition.Length();
   285     if ( len > KMaxInfoName )
   292     if ( len > KMaxInfoName )
   286         {
   293         {
   291 
   298 
   292     // Create overflow handler
   299     // Create overflow handler
   293     TDesOverflowHandler overFlowHandler (this, aPriority, shortDescription);
   300     TDesOverflowHandler overFlowHandler (this, aPriority, shortDescription);
   294 
   301 
   295     // Parse parameters
   302     // Parse parameters
   296     aBuf.AppendFormatList(aFmt,list, &overFlowHandler);        
   303     buf.AppendFormatList(aFmt, list, &overFlowHandler);
       
   304     
       
   305     if(buf.Length() == 0)
       
   306         {
       
   307         __RDEBUG((_L("STF: Printf: Unable to prepare print buffer (probably printed string is too long)")));
       
   308         }
   297 
   309 
   298     // Print
   310     // Print
       
   311     aBuf.Copy(buf.Left(aBuf.MaxLength()));
       
   312     buf.Close();
       
   313 
   299     iTestExecution->DoNotifyPrint( aPriority, shortDescription, aBuf );
   314     iTestExecution->DoNotifyPrint( aPriority, shortDescription, aBuf );
   300 
   315 
   301     }
   316     }
   302 
   317 
   303 /*
   318 /*