Use %I64 and not %ll when using OS printf if compiling for windows.

This commit is contained in:
Vladimir Serbinenko 2013-12-17 16:04:47 +01:00
parent d218ec9738
commit 18e76955be
11 changed files with 77 additions and 36 deletions

View file

@ -146,7 +146,8 @@ void
grub_util_write_image_at (const void *img, size_t size, off_t offset, FILE *out,
const char *name)
{
grub_util_info ("writing 0x%llx bytes at offset 0x%llx",
grub_util_info ("writing 0x%" GRUB_HOST_PRIxLONG_LONG " bytes at offset 0x%"
GRUB_HOST_PRIxLONG_LONG,
(unsigned long long) size, (unsigned long long) offset);
if (fseeko (out, offset, SEEK_SET) == -1)
grub_util_error (_("cannot seek `%s': %s"),
@ -160,7 +161,7 @@ void
grub_util_write_image (const char *img, size_t size, FILE *out,
const char *name)
{
grub_util_info ("writing 0x%llx bytes", (unsigned long long) size);
grub_util_info ("writing 0x%" GRUB_HOST_PRIxLONG_LONG " bytes", (unsigned long long) size);
if (fwrite (img, 1, size, out) != size)
{
if (!name)