mirror of https://github.com/acidanthera/audk.git
ShellPkg: Fix typos and EDK2 coding style issues
Fixing typos and EDK2 coding style issues found from previous submit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah <tapandshah@hpe.com> Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
262e2d94b6
commit
a5b731e085
|
@ -348,7 +348,7 @@ GraphicsOutputProtocolDumpInformation(
|
||||||
@param[in] TheHandle The handle that has LoadedImage installed.
|
@param[in] TheHandle The handle that has LoadedImage installed.
|
||||||
@param[in] Verbose TRUE for additional information, FALSE otherwise.
|
@param[in] Verbose TRUE for additional information, FALSE otherwise.
|
||||||
|
|
||||||
@retval A poitner to a string containing the information.
|
@retval A pointer to a string containing the information.
|
||||||
**/
|
**/
|
||||||
CHAR16*
|
CHAR16*
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -364,7 +364,7 @@ EdidDiscoveredProtocolDumpInformation (
|
||||||
CHAR16 *TempRetVal;
|
CHAR16 *TempRetVal;
|
||||||
|
|
||||||
if (!Verbose) {
|
if (!Verbose) {
|
||||||
return (CatSPrint(NULL, L"EDIDDiscovered"));
|
return (CatSPrint (NULL, L"EDIDDiscovered"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->OpenProtocol (
|
Status = gBS->OpenProtocol (
|
||||||
|
@ -380,7 +380,7 @@ EdidDiscoveredProtocolDumpInformation (
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_EDID_DISCOVERED_MAIN), NULL);
|
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN (STR_EDID_DISCOVERED_MAIN), NULL);
|
||||||
if (Temp == NULL) {
|
if (Temp == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -388,8 +388,8 @@ EdidDiscoveredProtocolDumpInformation (
|
||||||
RetVal = CatSPrint (NULL, Temp, EdidDiscovered->SizeOfEdid);
|
RetVal = CatSPrint (NULL, Temp, EdidDiscovered->SizeOfEdid);
|
||||||
SHELL_FREE_NON_NULL (Temp);
|
SHELL_FREE_NON_NULL (Temp);
|
||||||
|
|
||||||
if(EdidDiscovered->SizeOfEdid != 0) {
|
if (EdidDiscovered->SizeOfEdid != 0) {
|
||||||
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_EDID_DISCOVERED_DATA), NULL);
|
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN (STR_EDID_DISCOVERED_DATA), NULL);
|
||||||
if (Temp == NULL) {
|
if (Temp == NULL) {
|
||||||
SHELL_FREE_NON_NULL (RetVal);
|
SHELL_FREE_NON_NULL (RetVal);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -412,7 +412,7 @@ EdidDiscoveredProtocolDumpInformation (
|
||||||
@param[in] TheHandle The handle that has LoadedImage installed.
|
@param[in] TheHandle The handle that has LoadedImage installed.
|
||||||
@param[in] Verbose TRUE for additional information, FALSE otherwise.
|
@param[in] Verbose TRUE for additional information, FALSE otherwise.
|
||||||
|
|
||||||
@retval A poitner to a string containing the information.
|
@retval A pointer to a string containing the information.
|
||||||
**/
|
**/
|
||||||
CHAR16*
|
CHAR16*
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -428,7 +428,7 @@ EdidActiveProtocolDumpInformation (
|
||||||
CHAR16 *TempRetVal;
|
CHAR16 *TempRetVal;
|
||||||
|
|
||||||
if (!Verbose) {
|
if (!Verbose) {
|
||||||
return (CatSPrint(NULL, L"EDIDActive"));
|
return (CatSPrint (NULL, L"EDIDActive"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->OpenProtocol (
|
Status = gBS->OpenProtocol (
|
||||||
|
@ -444,7 +444,7 @@ EdidActiveProtocolDumpInformation (
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_EDID_ACTIVE_MAIN), NULL);
|
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN (STR_EDID_ACTIVE_MAIN), NULL);
|
||||||
if (Temp == NULL) {
|
if (Temp == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -452,8 +452,8 @@ EdidActiveProtocolDumpInformation (
|
||||||
RetVal = CatSPrint (NULL, Temp, EdidActive->SizeOfEdid);
|
RetVal = CatSPrint (NULL, Temp, EdidActive->SizeOfEdid);
|
||||||
SHELL_FREE_NON_NULL (Temp);
|
SHELL_FREE_NON_NULL (Temp);
|
||||||
|
|
||||||
if(EdidActive->SizeOfEdid != 0) {
|
if (EdidActive->SizeOfEdid != 0) {
|
||||||
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_EDID_ACTIVE_DATA), NULL);
|
Temp = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN (STR_EDID_ACTIVE_DATA), NULL);
|
||||||
if (Temp == NULL) {
|
if (Temp == NULL) {
|
||||||
SHELL_FREE_NON_NULL (RetVal);
|
SHELL_FREE_NON_NULL (RetVal);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue