]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: fix display for map command with filtering
authorJaben Carsey <Jaben.carsey@intel.com>
Wed, 28 May 2014 17:31:22 +0000 (17:31 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 28 May 2014 17:31:22 +0000 (17:31 +0000)
commitf747c71e301c7cf710d6511fbcc86a7ae6d475fa
tree0301815f61dccd40c488dedc50cb5d46bb7afe98
parent0c41d28e598356f083c308f359d435e63a6e0ef9
ShellPkg: fix display for map command with filtering

This patch correctly displays map information when a filter was applied such as “map fs*” or “map f*”, including the use of “-c” to display the consist names first in this situation.

It also moves a statement from both clauses of an “if/else” to above the “if” statement for efficiency.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15548 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c