mirror of https://github.com/acidanthera/audk.git
ShellPkg: Propagate verbose flag down so it can be used in all DH command use cases.
signed-off-by: jcarsey reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12923 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f4f3c6bf0a
commit
f0b0e7338b
|
@ -202,7 +202,7 @@ GetProtocolInfoString(
|
|||
if (!Verbose) {
|
||||
StrnCatGrow(&RetVal, &Size, L"(", 0);
|
||||
StrnCatGrow(&RetVal, &Size, Temp, 0);
|
||||
StrnCatGrow(&RetVal, &Size, L")", 0);
|
||||
StrnCatGrow(&RetVal, &Size, L")\r\n", 0);
|
||||
} else {
|
||||
StrnCatGrow(&RetVal, &Size, Seperator, 0);
|
||||
StrnCatGrow(&RetVal, &Size, Temp, 0);
|
||||
|
@ -728,6 +728,7 @@ DoDhByHandle(
|
|||
Display information for all handles on a list.
|
||||
|
||||
@param[in] HandleList The NULL-terminated list of handles.
|
||||
@param[in] Verbose TRUE for extra info, FALSE otherwise.
|
||||
@param[in] Sfo TRUE to output in standard format output (spec).
|
||||
@param[in] Language Language string per UEFI specification.
|
||||
@param[in] DriverInfo TRUE to show all info about the handle.
|
||||
|
@ -739,6 +740,7 @@ SHELL_STATUS
|
|||
EFIAPI
|
||||
DoDhForHandleList(
|
||||
IN CONST EFI_HANDLE *HandleList,
|
||||
IN CONST BOOLEAN Verbose,
|
||||
IN CONST BOOLEAN Sfo,
|
||||
IN CONST CHAR8 *Language,
|
||||
IN CONST BOOLEAN DriverInfo
|
||||
|
@ -752,7 +754,7 @@ DoDhForHandleList(
|
|||
for (HandleWalker = HandleList ; HandleWalker != NULL && *HandleWalker != NULL && ShellStatus == SHELL_SUCCESS; HandleWalker++) {
|
||||
ShellStatus = DoDhByHandle(
|
||||
*HandleWalker,
|
||||
FALSE,
|
||||
Verbose,
|
||||
Sfo,
|
||||
Language,
|
||||
DriverInfo,
|
||||
|
@ -766,6 +768,7 @@ DoDhForHandleList(
|
|||
Display information for all handles.
|
||||
|
||||
@param[in] Sfo TRUE to output in standard format output (spec).
|
||||
@param[in] Verbose TRUE for extra info, FALSE otherwise.
|
||||
@param[in] Language Language string per UEFI specification.
|
||||
@param[in] DriverInfo TRUE to show all info about the handle.
|
||||
|
||||
|
@ -776,6 +779,7 @@ SHELL_STATUS
|
|||
EFIAPI
|
||||
DoDhForAll(
|
||||
IN CONST BOOLEAN Sfo,
|
||||
IN CONST BOOLEAN Verbose,
|
||||
IN CONST CHAR8 *Language,
|
||||
IN CONST BOOLEAN DriverInfo
|
||||
)
|
||||
|
@ -787,6 +791,7 @@ DoDhForAll(
|
|||
|
||||
ShellStatus = DoDhForHandleList(
|
||||
HandleList,
|
||||
Verbose,
|
||||
Sfo,
|
||||
Language,
|
||||
DriverInfo);
|
||||
|
@ -800,6 +805,7 @@ DoDhForAll(
|
|||
Display information for all handles which have a specific protocol.
|
||||
|
||||
@param[in] ProtocolName The pointer to the name of the protocol.
|
||||
@param[in] Verbose TRUE for extra info, FALSE otherwise.
|
||||
@param[in] Sfo TRUE to output in standard format output (spec).
|
||||
@param[in] Language Language string per UEFI specification.
|
||||
@param[in] DriverInfo TRUE to show all info about the handle.
|
||||
|
@ -811,6 +817,7 @@ SHELL_STATUS
|
|||
EFIAPI
|
||||
DoDhByProtocol(
|
||||
IN CONST CHAR16 *ProtocolName,
|
||||
IN CONST BOOLEAN Verbose,
|
||||
IN CONST BOOLEAN Sfo,
|
||||
IN CONST CHAR8 *Language,
|
||||
IN CONST BOOLEAN DriverInfo
|
||||
|
@ -835,6 +842,7 @@ DoDhByProtocol(
|
|||
|
||||
ShellStatus = DoDhForHandleList(
|
||||
HandleList,
|
||||
Verbose,
|
||||
Sfo,
|
||||
Language,
|
||||
DriverInfo);
|
||||
|
@ -932,6 +940,7 @@ ShellCommandRunDh (
|
|||
//
|
||||
ShellStatus = DoDhByProtocol(
|
||||
ShellCommandLineGetValue(Package, L"-p"),
|
||||
Verbose,
|
||||
SfoMode,
|
||||
Lang==NULL?NULL:Language,
|
||||
FlagD
|
||||
|
@ -945,6 +954,7 @@ ShellCommandRunDh (
|
|||
//
|
||||
ShellStatus = DoDhForAll(
|
||||
SfoMode,
|
||||
Verbose,
|
||||
Lang==NULL?NULL:Language,
|
||||
FlagD
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue