]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix build error.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 15 Nov 2010 02:14:25 +0000 (02:14 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 15 Nov 2010 02:14:25 +0000 (02:14 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11054 6f19259b-4bc3-4df7-8a09-765794883524

PerformancePkg/Dp_App/DpTrace.c

index 5038473c077c1f15a27aea4dd1e02a726d895dac..bdaa1d925647b54ab47e878fddd742375ef176c1 100644 (file)
@@ -703,7 +703,10 @@ ProcessCumulative(
   VOID\r
 )\r
 {\r
-  UINT64                    Avgval;         // the computed average duration\r
+  UINT64                    AvgDur;         // the computed average duration\r
+  UINT64                    Dur;\r
+  UINT64                    MinDur;\r
+  UINT64                    MaxDur;\r
   EFI_STRING                StringPtr;\r
   UINTN                     TIndex;\r
   EFI_STRING                StringPtrUnknown;\r
@@ -720,14 +723,19 @@ ProcessCumulative(
   PrintToken (STRING_TOKEN (STR_DP_DASHES));\r
 \r
   for ( TIndex = 0; TIndex < NumCum; ++TIndex) {\r
-    Avgval = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);\r
+    AvgDur = DivU64x32 (CumData[TIndex].Duration, CumData[TIndex].Count);\r
+    AvgDur = DurationInMicroSeconds(AvgDur);\r
+    Dur    = DurationInMicroSeconds(CumData[TIndex].Duration);\r
+    MaxDur = DurationInMicroSeconds(CumData[TIndex].MaxDur);\r
+    MinDur = DurationInMicroSeconds(CumData[TIndex].MinDur);\r
+    \r
     PrintToken (STRING_TOKEN (STR_DP_CUMULATIVE_STATS),\r
                 CumData[TIndex].Name,\r
                 CumData[TIndex].Count,\r
-                DurationInMicroSeconds(CumData[TIndex].Duration),\r
-                DurationInMicroSeconds(Avgval),\r
-                DurationInMicroSeconds(CumData[TIndex].MinDur),\r
-                DurationInMicroSeconds(CumData[TIndex].MaxDur)\r
+                Dur,\r
+                AvgDur,\r
+                MinDur,\r
+                MaxDur\r
                );\r
   }\r
 }\r