Blame SOURCES/0330-grub-core-lib-efi-relocator.c-grub_relocator_firmwar.patch

f96e0b
From 8e89166d92a09ac82788747a6b3da734d97dae3f Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Sat, 20 Apr 2013 13:39:04 +0200
f96e0b
Subject: [PATCH 330/482] 	* grub-core/lib/efi/relocator.c
f96e0b
 (grub_relocator_firmware_alloc_region): 	Remove dprintf. 	*
f96e0b
 grub-core/lib/relocator.c (malloc_in_range): Likewise.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                     | 6 ++++++
f96e0b
 grub-core/lib/efi/relocator.c | 4 ++--
f96e0b
 grub-core/lib/relocator.c     | 2 ++
f96e0b
 3 files changed, 10 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 3e606cb..6ca70a6 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,9 @@
f96e0b
+2013-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
+	* grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
f96e0b
+	Remove dprintf.
f96e0b
+	* grub-core/lib/relocator.c (malloc_in_range): Likewise.
f96e0b
+
f96e0b
 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	* grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
f96e0b
diff --git a/grub-core/lib/efi/relocator.c b/grub-core/lib/efi/relocator.c
f96e0b
index 0d346be..319b69e 100644
f96e0b
--- a/grub-core/lib/efi/relocator.c
f96e0b
+++ b/grub-core/lib/efi/relocator.c
f96e0b
@@ -96,10 +96,10 @@ grub_relocator_firmware_alloc_region (grub_addr_t start, grub_size_t size)
f96e0b
 
f96e0b
   if (grub_efi_is_finished)
f96e0b
     return 1;
f96e0b
-
f96e0b
+#ifdef DEBUG_RELOCATOR_NOMEM_DPRINTF
f96e0b
   grub_dprintf ("relocator", "EFI alloc: %llx, %llx\n",
f96e0b
 		(unsigned long long) start, (unsigned long long) size);
f96e0b
-
f96e0b
+#endif
f96e0b
   b = grub_efi_system_table->boot_services;
f96e0b
   status = efi_call_4 (b->allocate_pages, GRUB_EFI_ALLOCATE_ADDRESS,
f96e0b
 		       GRUB_EFI_LOADER_DATA, size >> 12, &address);
f96e0b
diff --git a/grub-core/lib/relocator.c b/grub-core/lib/relocator.c
f96e0b
index 350066d..e085514 100644
f96e0b
--- a/grub-core/lib/relocator.c
f96e0b
+++ b/grub-core/lib/relocator.c
f96e0b
@@ -984,9 +984,11 @@ malloc_in_range (struct grub_relocator *rel,
f96e0b
 	    alloc_end = min (events[j].pos, target + size);
f96e0b
 	    if (alloc_end > alloc_start)
f96e0b
 	      {
f96e0b
+#ifdef DEBUG_RELOCATOR_NOMEM_DPRINTF
f96e0b
 		grub_dprintf ("relocator", "subchunk 0x%lx-0x%lx, %d\n",
f96e0b
 			      (unsigned long) alloc_start,
f96e0b
 			      (unsigned long) alloc_end, typepre);
f96e0b
+#endif
f96e0b
 		curschu->type = typepre;
f96e0b
 		curschu->start = alloc_start;
f96e0b
 		curschu->size = alloc_end - alloc_start;
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b