]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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)
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>

No differences found