diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-10 20:53:26 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-10 20:53:26 +0000 |
commit | f0b0e7338b7d284bb57a8b4acf8d85d9d86c9a13 (patch) | |
tree | 3976fbcb461c270086a92fa20b157cfab2491e10 /ShellPkg | |
parent | f4f3c6bf0a1198c3742416cc1039a0884fcecbd4 (diff) | |
download | edk2-platforms-f0b0e7338b7d284bb57a8b4acf8d85d9d86c9a13.tar.xz |
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c index 852ba1d1e1..1b42b23add 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c @@ -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
);
|