Use %I64 and not %ll when using OS printf if compiling for windows.
This commit is contained in:
parent
d218ec9738
commit
18e76955be
11 changed files with 77 additions and 36 deletions
|
@ -232,8 +232,8 @@ find_partition (grub_disk_t dsk __attribute__ ((unused)),
|
|||
{
|
||||
struct grub_util_biosdisk_get_grub_dev_ctx *ctx = data;
|
||||
grub_disk_addr_t part_start = 0;
|
||||
grub_util_info ("Partition %d starts from %" PRIuGRUB_UINT64_T,
|
||||
partition->number, partition->start);
|
||||
grub_util_info ("Partition %d starts from %" GRUB_HOST_PRIuLONG_LONG,
|
||||
partition->number, (unsigned long long) partition->start);
|
||||
|
||||
part_start = grub_partition_get_start (partition);
|
||||
|
||||
|
@ -374,7 +374,8 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
grub_util_info ("%s starts from %" PRIuGRUB_UINT64_T, os_dev, ctx.start);
|
||||
grub_util_info ("%s starts from %" GRUB_HOST_PRIuLONG_LONG,
|
||||
os_dev, (unsigned long long) ctx.start);
|
||||
|
||||
if (ctx.start == 0 && !is_part)
|
||||
return name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue