--- a/kerneltest/e32test/debug/t_perflogger.cpp Sat Feb 20 00:10:51 2010 +0200
+++ b/kerneltest/e32test/debug/t_perflogger.cpp Fri Mar 12 15:50:11 2010 +0200
@@ -105,6 +105,7 @@
{
TUint8* record;
TTraceLayout traceLayout;
+ TInt nRecords = 0;
for(TInt i=0; ;++i)
{
@@ -134,7 +135,6 @@
TUint8* end = record+dataSize;
TUint8* currPos = record;
- TInt nRecords = 0;
TUint nBytes = 0;
//-- parser the record, print out fields and optionally check the correspondence to the fields of the control structure.
@@ -168,16 +168,17 @@
}
}
+
+ //-- release data buffer.
+ aTrace.DataUsed();
+ }
- //-- check number of trace records obtained
- if(apControlStruct)
- {
- test(nRecords == apControlStruct->iLogsNum);
- }
-
- //-- release data buffer.
- aTrace.DataUsed();
+ //-- check number of trace records obtained
+ if(apControlStruct)
+ {
+ test(nRecords == apControlStruct->iLogsNum);
}
+
}