Main file for devices shell Driver1 function.\r
\r
(C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2018, 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
Get lots of info about a device from its handle.\r
\r
@param[in] TheHandle The device handle to get info on.\r
- @param[in, out] Type On successful return R, B, or D (root, bus, or \r
+ @param[in, out] Type On successful return R, B, or D (root, bus, or\r
device) will be placed in this buffer.\r
- @param[in, out] Cfg On successful return this buffer will be \r
+ @param[in, out] Cfg On successful return this buffer will be\r
TRUE if the handle has configuration, FALSE\r
otherwise.\r
- @param[in, out] Diag On successful return this buffer will be \r
+ @param[in, out] Diag On successful return this buffer will be\r
TRUE if the handle has disgnostics, FALSE\r
otherwise.\r
- @param[in, out] Parents On successful return this buffer will be \r
+ @param[in, out] Parents On successful return this buffer will be\r
contain the number of parent handles.\r
- @param[in, out] Devices On successful return this buffer will be \r
+ @param[in, out] Devices On successful return this buffer will be\r
contain the number of devices controlled.\r
- @param[in, out] Children On successful return this buffer will be \r
+ @param[in, out] Children On successful return this buffer will be\r
contain the number of child handles.\r
@param[out] Name The pointer to a buffer that will be allocated\r
and contain the string name of the handle.\r
EFI_HANDLE *HandleBuffer;\r
UINTN Count;\r
\r
- if (TheHandle == NULL \r
+ if (TheHandle == NULL\r
|| Type == NULL\r
|| Cfg == NULL\r
|| Diag == NULL\r
Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
if (EFI_ERROR(Status)) {\r
if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam); \r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam);\r
FreePool(ProblemParam);\r
ShellStatus = SHELL_INVALID_PARAMETER;\r
} else {\r
//\r
// error for too many parameters\r
//\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices"); \r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices");\r
ShellStatus = SHELL_INVALID_PARAMETER;\r
} else {\r
//\r
// AsciiSPrint(Language, 10, "en-us");\r
} else {\r
ASSERT(Language == NULL);\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices", L"-l"); \r
+ ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices", L"-l");\r
ShellCommandLineFreeVarList (Package);\r
return (SHELL_INVALID_PARAMETER);\r
}\r
ShellStatus = SHELL_ABORTED;\r
break;\r
}\r
- \r
+\r
}\r
\r
if (HandleList != NULL) {\r
FreePool(HandleList);\r
}\r
- \r
+\r
}\r
SHELL_FREE_NON_NULL(Language);\r
ShellCommandLineFreeVarList (Package);\r