]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix x86_64-efi compilation
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 18 Jan 2010 11:01:13 +0000 (12:01 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 18 Jan 2010 11:01:13 +0000 (12:01 +0100)
lib/relocator.c
loader/i386/bsd.c

index a02bca332acacfa2e74d3d8b434f28ea8b66d814..0644691cd4d5f20b858e9a828572f246f7e2bd23 100644 (file)
@@ -635,9 +635,9 @@ grub_relocator_prepare_relocs (struct grub_relocator *rel, grub_addr_t addr,
         struct grub_relocator_chunk *chunk;
        for (chunk = rel->chunks; chunk; chunk = chunk->next)
          {
-           grub_dprintf ("relocator", "chunk %p->%p, 0x%x\n", 
+           grub_dprintf ("relocator", "chunk %p->%p, 0x%lx\n", 
                          (void *) chunk->src, (void *) chunk->target,
-                         chunk->size);
+                         (unsigned long) chunk->size);
            nchunks++;
            count[(chunk->src & 0xff) + 1]++;
          }
@@ -679,9 +679,9 @@ grub_relocator_prepare_relocs (struct grub_relocator *rel, grub_addr_t addr,
 
   for (j = 0; j < nchunks; j++)
     {
-      grub_dprintf ("relocator", "sorted chunk %p->%p, 0x%x\n", 
+      grub_dprintf ("relocator", "sorted chunk %p->%p, 0x%lx\n", 
                    (void *) sorted[j].src, (void *) sorted[j].target,
-                   sorted[j].size);
+                   (unsigned long) sorted[j].size);
       if (sorted[j].src < sorted[j].target)
        {
          grub_cpu_relocator_backward ((void *) rels,
index 28f1c685adfc8adb7ea283299039ab9e4aed7f05..d019f21dbdb41b01f7f0411e6e8c145bb843a9dc 100644 (file)
@@ -351,7 +351,7 @@ grub_bsd_add_mmap (void)
 
   generate_e820_mmap (NULL, &cnt, buf);
 
-  grub_dprintf ("bsd", "%u entries in smap\n", cnt);
+  grub_dprintf ("bsd", "%u entries in smap\n", (unsigned) cnt);
   if (kernel_type == KERNEL_TYPE_NETBSD)
     grub_bsd_add_meta (NETBSD_BTINFO_MEMMAP, buf0, len);
   else