aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2013-01-20 14:04:43 +0000
committerJames Bottomley <JBottomley@Parallels.com>2013-01-20 14:04:43 +0000
commit138347152270e41a869f7b4bc0724ed9969f486b (patch)
treef02e1c0f32f7d3f58d5d3e6d49e00d19693bfea0
parentcefc509928f496df928d5849bdde451947327ac0 (diff)
downloadefitools-138347152270e41a869f7b4bc0724ed9969f486b.tar.gz
configtable: remove rest of debugging prints
-rw-r--r--lib/configtable.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/configtable.c b/lib/configtable.c
index b95a273..735ce8f 100644
--- a/lib/configtable.c
+++ b/lib/configtable.c
@@ -43,13 +43,11 @@ configtable_find_image(const EFI_DEVICE_PATH *DevicePath)
int entries = t->NumberOfImages;
EFI_IMAGE_EXECUTION_INFO *e = t->InformationInfo;
- Print(L"FOUND %d images\n", entries);
-
int i;
for (i = 0; i < entries; i++) {
+#ifdef DEBUG_CONFIG
Print(L"InfoSize = %d Action = %d\n", e->InfoSize, e->Action);
-#ifdef DEBUG_CONFIG
/* print what we have for debugging */
UINT8 *d = (UINT8 *)e; // + sizeof(UINT32)*2;
Print(L"Data: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
@@ -78,7 +76,9 @@ configtable_find_image(const EFI_DEVICE_PATH *DevicePath)
* look for either a UC16 NULL or ASCII as UC16 */
if (name[0] == '\0' || (e->Data[1] == 0 && e->Data[3] == 0)) {
skip = StrSize(name);
+#ifdef DEBUG_CONFIG
Print(L"FOUND NAME %s (%d)\n", name, skip);
+#endif
}
EFI_DEVICE_PATH *dp = (EFI_DEVICE_PATH *)(e->Data + skip), *dpn = dp;
if (dp->Type == 0 || dp->Type > 6 || dp->SubType == 0
@@ -134,7 +134,9 @@ configtable_image_is_forbidden(const EFI_DEVICE_PATH *DevicePath)
if (e && (e->Action == EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND
|| e->Action == EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED)) {
/* this means the images signing key is in dbx */
+#ifdef DEBUG_CONFIG
Print(L"SIGNATURE IS IN DBX, FORBIDDING EXECUTION\n");
+#endif
return 1;
}