]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 20 Apr 2013 11:39:04 +0000 (13:39 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 20 Apr 2013 11:39:04 +0000 (13:39 +0200)
Remove dprintf.
* grub-core/lib/relocator.c (malloc_in_range): Likewise.

ChangeLog
grub-core/lib/efi/relocator.c
grub-core/lib/relocator.c

index 3e606cba9e7b2dbf14e2700ee7b7a38e1cdd4c71..6ca70a6368b9a840a431f47f349eacf05a47be47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
+       Remove dprintf.
+       * grub-core/lib/relocator.c (malloc_in_range): Likewise.
+
 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
index 0d346bea3916ae6437cf1e39979294cb971a40d5..319b69eeb947bfb4050d2e38a90b2cc1d36fe017 100644 (file)
@@ -96,10 +96,10 @@ grub_relocator_firmware_alloc_region (grub_addr_t start, grub_size_t size)
 
   if (grub_efi_is_finished)
     return 1;
-
+#ifdef DEBUG_RELOCATOR_NOMEM_DPRINTF
   grub_dprintf ("relocator", "EFI alloc: %llx, %llx\n",
                (unsigned long long) start, (unsigned long long) size);
-
+#endif
   b = grub_efi_system_table->boot_services;
   status = efi_call_4 (b->allocate_pages, GRUB_EFI_ALLOCATE_ADDRESS,
                       GRUB_EFI_LOADER_DATA, size >> 12, &address);
index 350066dc20146432871291cb8b5a7e59c42ea564..e08551403207fc104b91e1ffaf410a2a7c8cc393 100644 (file)
@@ -984,9 +984,11 @@ malloc_in_range (struct grub_relocator *rel,
            alloc_end = min (events[j].pos, target + size);
            if (alloc_end > alloc_start)
              {
+#ifdef DEBUG_RELOCATOR_NOMEM_DPRINTF
                grub_dprintf ("relocator", "subchunk 0x%lx-0x%lx, %d\n",
                              (unsigned long) alloc_start,
                              (unsigned long) alloc_end, typepre);
+#endif
                curschu->type = typepre;
                curschu->start = alloc_start;
                curschu->size = alloc_end - alloc_start;