summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Bds/Bds.c
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2015-05-13 18:20:58 +0000
committeroliviermartin <oliviermartin@Edk2>2015-05-13 18:20:58 +0000
commitb51cffe12fbea45a1112bffea40a63efc7e79982 (patch)
treec67d049e3c73d1d552d35d92d51ea73e09cde9f0 /ArmPlatformPkg/Bds/Bds.c
parentb398eada1656553adf78c572b0f1cefc04740f13 (diff)
downloadedk2-platforms-b51cffe12fbea45a1112bffea40a63efc7e79982.tar.xz
ArmPlatformPkg/Bds: Clarify assert message with debug information
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by: Ronald Cron <Ronald.Cron@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17439 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Bds/Bds.c')
-rw-r--r--ArmPlatformPkg/Bds/Bds.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ArmPlatformPkg/Bds/Bds.c b/ArmPlatformPkg/Bds/Bds.c
index 6a12717a1c..1fab43976f 100644
--- a/ArmPlatformPkg/Bds/Bds.c
+++ b/ArmPlatformPkg/Bds/Bds.c
@@ -1,6 +1,6 @@
/** @file
*
-* Copyright (c) 2011-2014, ARM Limited. All rights reserved.
+* Copyright (c) 2011-2015, ARM Limited. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
@@ -258,7 +258,11 @@ DefineDefaultBootEntries (
ASSERT_EFI_ERROR(Status);
DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText (BootDevicePath, TRUE, TRUE);
- ASSERT (StrCmp ((CHAR16*)PcdGetPtr(PcdDefaultBootDevicePath), DevicePathTxt) == 0);
+ if (StrCmp ((CHAR16*)PcdGetPtr (PcdDefaultBootDevicePath), DevicePathTxt) != 0) {
+ DEBUG ((EFI_D_ERROR, "Device Path given: '%s' Device Path expected: '%s'\n",
+ (CHAR16*)PcdGetPtr (PcdDefaultBootDevicePath), DevicePathTxt));
+ ASSERT_EFI_ERROR (EFI_INVALID_PARAMETER);
+ }
FreePool (DevicePathTxt);
DEBUG_CODE_END();