/** @file\r
Module for clarifying the content of the smbios structure element info.\r
\r
- Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2005 - 2019, Intel Corporation. All rights reserved. <BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
-#include "../UefiShellDebug1CommandsLib.h"\r
+#include "UefiShellDebug1CommandsLib.h"\r
#include "PrintInfo.h"\r
#include "QueryTable.h"\r
#include "EventLogInfo.h"\r
@param[in] Option Whether to print the additional information.\r
**/\r
VOID\r
-EFIAPI\r
DisplaySELAccessMethod (\r
IN CONST UINT8 Key,\r
IN CONST UINT8 Option\r
@param[in] Option Whether to print the additional information.\r
**/\r
VOID\r
-EFIAPI\r
DisplaySELLogStatus (\r
UINT8 Key,\r
UINT8 Option\r
@param[in] Option Whether to print the additional information.\r
**/\r
VOID\r
-EFIAPI\r
DisplaySysEventLogHeaderFormat (\r
UINT8 Key,\r
UINT8 Option\r
@param[in] LogHeader Format informcation.\r
**/\r
VOID\r
-EFIAPI\r
DisplaySysEventLogHeader (\r
UINT8 LogHeaderFormat,\r
UINT8 *LogHeader\r
@param[in] LogAreaLength Length of the data.\r
**/\r
VOID\r
-EFIAPI\r
DisplaySysEventLogData (\r
UINT8 *LogData,\r
UINT16 LogAreaLength\r
Offset = 0;\r
Log = (LOG_RECORD_FORMAT *) LogData;\r
while (Log != NULL && Log->Type != END_OF_LOG && Offset < LogAreaLength) {\r
- //\r
- // Get a Event Log Record\r
- //\r
- Log = (LOG_RECORD_FORMAT *) (LogData + Offset);\r
\r
if (Log != NULL) {\r
//\r
// Display Event Log Record Information\r
//\r
- DisplaySELVarDataFormatType (Log->Type, SHOW_DETAIL);\r
+ DisplaySELTypes (Log->Type, SHOW_DETAIL);\r
DisplaySELLogHeaderLen (Log->Length, SHOW_DETAIL);\r
\r
Offset += Log->Length;\r
Print (L"20");\r
} else {\r
ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_EVENTLOGINFO_ERROR), gShellDebug1HiiHandle);\r
+ //\r
+ // Get a Event Log Record\r
+ //\r
+ Log = (LOG_RECORD_FORMAT *) (LogData + Offset);\r
continue;\r
}\r
\r
// Display Variable Data Format\r
//\r
if (Log->Length <= (sizeof (LOG_RECORD_FORMAT) - 1)) {\r
+ //\r
+ // Get a Event Log Record\r
+ //\r
+ Log = (LOG_RECORD_FORMAT *) (LogData + Offset);\r
continue;\r
}\r
\r
ElVdfType = Log->LogVariableData[0];\r
DisplayElVdfInfo (ElVdfType, Log->LogVariableData);\r
+ //\r
+ // Get a Event Log Record\r
+ //\r
+ Log = (LOG_RECORD_FORMAT *) (LogData + Offset);\r
}\r
}\r
}\r