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:
jcarsey
2012-01-10 20:53:26 +00:00
parent f4f3c6bf0a
commit f0b0e7338b

View File

@ -202,7 +202,7 @@ GetProtocolInfoString(
if (!Verbose) { if (!Verbose) {
StrnCatGrow(&RetVal, &Size, L"(", 0); StrnCatGrow(&RetVal, &Size, L"(", 0);
StrnCatGrow(&RetVal, &Size, Temp, 0); StrnCatGrow(&RetVal, &Size, Temp, 0);
StrnCatGrow(&RetVal, &Size, L")", 0); StrnCatGrow(&RetVal, &Size, L")\r\n", 0);
} else { } else {
StrnCatGrow(&RetVal, &Size, Seperator, 0); StrnCatGrow(&RetVal, &Size, Seperator, 0);
StrnCatGrow(&RetVal, &Size, Temp, 0); StrnCatGrow(&RetVal, &Size, Temp, 0);
@ -728,6 +728,7 @@ DoDhByHandle(
Display information for all handles on a list. Display information for all handles on a list.
@param[in] HandleList The NULL-terminated list of handles. @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] Sfo TRUE to output in standard format output (spec).
@param[in] Language Language string per UEFI specification. @param[in] Language Language string per UEFI specification.
@param[in] DriverInfo TRUE to show all info about the handle. @param[in] DriverInfo TRUE to show all info about the handle.
@ -739,6 +740,7 @@ SHELL_STATUS
EFIAPI EFIAPI
DoDhForHandleList( DoDhForHandleList(
IN CONST EFI_HANDLE *HandleList, IN CONST EFI_HANDLE *HandleList,
IN CONST BOOLEAN Verbose,
IN CONST BOOLEAN Sfo, IN CONST BOOLEAN Sfo,
IN CONST CHAR8 *Language, IN CONST CHAR8 *Language,
IN CONST BOOLEAN DriverInfo IN CONST BOOLEAN DriverInfo
@ -752,7 +754,7 @@ DoDhForHandleList(
for (HandleWalker = HandleList ; HandleWalker != NULL && *HandleWalker != NULL && ShellStatus == SHELL_SUCCESS; HandleWalker++) { for (HandleWalker = HandleList ; HandleWalker != NULL && *HandleWalker != NULL && ShellStatus == SHELL_SUCCESS; HandleWalker++) {
ShellStatus = DoDhByHandle( ShellStatus = DoDhByHandle(
*HandleWalker, *HandleWalker,
FALSE, Verbose,
Sfo, Sfo,
Language, Language,
DriverInfo, DriverInfo,
@ -766,6 +768,7 @@ DoDhForHandleList(
Display information for all handles. Display information for all handles.
@param[in] Sfo TRUE to output in standard format output (spec). @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] Language Language string per UEFI specification.
@param[in] DriverInfo TRUE to show all info about the handle. @param[in] DriverInfo TRUE to show all info about the handle.
@ -776,6 +779,7 @@ SHELL_STATUS
EFIAPI EFIAPI
DoDhForAll( DoDhForAll(
IN CONST BOOLEAN Sfo, IN CONST BOOLEAN Sfo,
IN CONST BOOLEAN Verbose,
IN CONST CHAR8 *Language, IN CONST CHAR8 *Language,
IN CONST BOOLEAN DriverInfo IN CONST BOOLEAN DriverInfo
) )
@ -787,6 +791,7 @@ DoDhForAll(
ShellStatus = DoDhForHandleList( ShellStatus = DoDhForHandleList(
HandleList, HandleList,
Verbose,
Sfo, Sfo,
Language, Language,
DriverInfo); DriverInfo);
@ -800,6 +805,7 @@ DoDhForAll(
Display information for all handles which have a specific protocol. Display information for all handles which have a specific protocol.
@param[in] ProtocolName The pointer to the name of the 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] Sfo TRUE to output in standard format output (spec).
@param[in] Language Language string per UEFI specification. @param[in] Language Language string per UEFI specification.
@param[in] DriverInfo TRUE to show all info about the handle. @param[in] DriverInfo TRUE to show all info about the handle.
@ -811,6 +817,7 @@ SHELL_STATUS
EFIAPI EFIAPI
DoDhByProtocol( DoDhByProtocol(
IN CONST CHAR16 *ProtocolName, IN CONST CHAR16 *ProtocolName,
IN CONST BOOLEAN Verbose,
IN CONST BOOLEAN Sfo, IN CONST BOOLEAN Sfo,
IN CONST CHAR8 *Language, IN CONST CHAR8 *Language,
IN CONST BOOLEAN DriverInfo IN CONST BOOLEAN DriverInfo
@ -835,6 +842,7 @@ DoDhByProtocol(
ShellStatus = DoDhForHandleList( ShellStatus = DoDhForHandleList(
HandleList, HandleList,
Verbose,
Sfo, Sfo,
Language, Language,
DriverInfo); DriverInfo);
@ -932,6 +940,7 @@ ShellCommandRunDh (
// //
ShellStatus = DoDhByProtocol( ShellStatus = DoDhByProtocol(
ShellCommandLineGetValue(Package, L"-p"), ShellCommandLineGetValue(Package, L"-p"),
Verbose,
SfoMode, SfoMode,
Lang==NULL?NULL:Language, Lang==NULL?NULL:Language,
FlagD FlagD
@ -945,6 +954,7 @@ ShellCommandRunDh (
// //
ShellStatus = DoDhForAll( ShellStatus = DoDhForAll(
SfoMode, SfoMode,
Verbose,
Lang==NULL?NULL:Language, Lang==NULL?NULL:Language,
FlagD FlagD
); );