mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
Fix build error.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11054 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ff51746bd4
commit
5460c4bbc5
@ -703,7 +703,10 @@ ProcessCumulative(
|
|||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT64 Avgval; // the computed average duration
|
UINT64 AvgDur; // the computed average duration
|
||||||
|
UINT64 Dur;
|
||||||
|
UINT64 MinDur;
|
||||||
|
UINT64 MaxDur;
|
||||||
EFI_STRING StringPtr;
|
EFI_STRING StringPtr;
|
||||||
UINTN TIndex;
|
UINTN TIndex;
|
||||||
EFI_STRING StringPtrUnknown;
|
EFI_STRING StringPtrUnknown;
|
||||||
@ -720,14 +723,19 @@ ProcessCumulative(
|
|||||||
PrintToken (STRING_TOKEN (STR_DP_DASHES));
|
PrintToken (STRING_TOKEN (STR_DP_DASHES));
|
||||||
|
|
||||||
for ( TIndex = 0; TIndex < NumCum; ++TIndex) {
|
for ( TIndex = 0; TIndex < NumCum; ++TIndex) {
|
||||||
Avgval = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);
|
AvgDur = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);
|
||||||
|
AvgDur = DurationInMicroSeconds(AvgDur);
|
||||||
|
Dur = DurationInMicroSeconds(CumData[TIndex].Duration);
|
||||||
|
MaxDur = DurationInMicroSeconds(CumData[TIndex].MaxDur);
|
||||||
|
MinDur = DurationInMicroSeconds(CumData[TIndex].MinDur);
|
||||||
|
|
||||||
PrintToken (STRING_TOKEN (STR_DP_CUMULATIVE_STATS),
|
PrintToken (STRING_TOKEN (STR_DP_CUMULATIVE_STATS),
|
||||||
CumData[TIndex].Name,
|
CumData[TIndex].Name,
|
||||||
CumData[TIndex].Count,
|
CumData[TIndex].Count,
|
||||||
DurationInMicroSeconds(CumData[TIndex].Duration),
|
Dur,
|
||||||
DurationInMicroSeconds(Avgval),
|
AvgDur,
|
||||||
DurationInMicroSeconds(CumData[TIndex].MinDur),
|
MinDur,
|
||||||
DurationInMicroSeconds(CumData[TIndex].MaxDur)
|
MaxDur
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user