ret->postchunks = ~(grub_addr_t) 0;
ret->relocators_size = grub_relocator_jumper_size;
- grub_dprintf ("relocator", "relocators_size=%ld\n", ret->relocators_size);
+ grub_dprintf ("relocator", "relocators_size=%lu\n",
+ (unsigned long) ret->relocators_size);
return ret;
}
hb = h;
hbp = hp;
*best_addr = addr;
- grub_dprintf ("relocator", "picked %p/%lx\n", hb, addr);
+ grub_dprintf ("relocator", "picked %p/%lx\n", hb,
+ (unsigned long) addr);
}
}
else
hb = h;
hbp = hp;
*best_addr = addr;
- grub_dprintf ("relocator", "picked %p/%lx\n", hb, addr);
+ grub_dprintf ("relocator", "picked %p/%lx\n", hb,
+ (unsigned long) addr);
}
}
}
hb = get_best_header (rel, start, end, align, size, rb, &hbp, &best_addr,
from_low_priv, collisioncheck);
- grub_dprintf ("relocator", "best header %p/%lx\n", hb, best_addr);
+ grub_dprintf ("relocator", "best header %p/%lx\n", hb,
+ (unsigned long) best_addr);
if (!hb)
{
rel->highestnonpostaddr = start + size;
}
- grub_dprintf ("relocator", "relocators_size=%ld\n", rel->relocators_size);
+ grub_dprintf ("relocator", "relocators_size=%ld\n",
+ (unsigned long) rel->relocators_size);
if (start < target)
rel->relocators_size += grub_relocator_backward_size;
if (start > target)
rel->relocators_size += grub_relocator_forward_size;
- grub_dprintf ("relocator", "relocators_size=%ld\n", rel->relocators_size);
+ grub_dprintf ("relocator", "relocators_size=%ld\n",
+ (unsigned long) rel->relocators_size);
chunk->src = start;
chunk->target = target;
adjust_limits (rel, &min_addr2, &max_addr2, min_addr, max_addr);
grub_dprintf ("relocator", "Adjusted limits from %lx-%lx to %lx-%lx\n",
- min_addr, max_addr, min_addr2, max_addr2);
+ (unsigned long) min_addr, (unsigned long) max_addr,
+ (unsigned long) min_addr2, (unsigned long) max_addr2);
do
{
grub_addr_t rels0;
grub_dprintf ("relocator", "Preparing relocs (size=%ld)\n",
- rel->relocators_size);
+ (unsigned long) rel->relocators_size);
if (!malloc_in_range (rel, 0, ~(grub_addr_t)0 - rel->relocators_size + 1,
grub_relocator_align,