@@ -343,16 +343,16 @@ ProfileActionToStr (
if (IsForSmm) {
ActionString = mSmmActionString;
- ActionStringCount = sizeof (mSmmActionString) / sizeof (mSmmActionString[0]);
+ ActionStringCount = ARRAY_SIZE (mSmmActionString);
} else {
ActionString = mActionString;
- ActionStringCount = sizeof (mActionString) / sizeof (mActionString[0]);
+ ActionStringCount = ARRAY_SIZE (mActionString);
}
if ((UINTN) (UINT32) Action < ActionStringCount) {
return ActionString[Action];
}
- for (Index = 0; Index < sizeof (mExtActionString) / sizeof (mExtActionString[0]); Index++) {
+ for (Index = 0; Index < ARRAY_SIZE (mExtActionString); Index++) {
if (mExtActionString[Index].Action == Action) {
return mExtActionString[Index].String;
}
Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> --- MdeModulePkg/Application/MemoryProfileInfo/MemoryProfileInfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel