mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
Fix x86_64-efi compilation
This commit is contained in:
1 parent
b14620812f
commit
3de254033c
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -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,
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user