]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c
ShellPkg/UefiDpLib: Fix the error message "Timer library instance error!"
authorCinnamon Shia <cinnamon.shia@hpe.com>
Mon, 2 May 2016 04:34:08 +0000 (12:34 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 3 May 2016 04:37:51 +0000 (12:37 +0800)
commit69af847603ca1f6439031c4e1fee844fdb06ca6f
treebe6ea9d9e7548026f3951d7828f78f7c40d82274
parent730f8071412349f6f018a300298d4fe3ab9267f9
ShellPkg/UefiDpLib: Fix the error message "Timer library instance error!"

When executing shell dp command, there is an error message "Timer library
instance error!"

The error message "Timer library instance error!" should be for the case about
duration > EndTimeStamp if CountUp or duration > StartTimeStamp if CountDown.

But if the EndTimeStamp of an entry is not added, it should not the case to catch.

This change fixes the error message "Timer library instance error!" from the
"BdsAttempt" entry which is logged when trying to boot a boot option.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiDpLib/DpUtilities.c