* util/grub-mkimage.c: Likewise.
* util/grub-mkimagexx.c: Likewise.
* util/grub-script-check.c: Likewise.
+2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub-fstest.c: Fix several printf formats.
+ * util/grub-mkimage.c: Likewise.
+ * util/grub-mkimagexx.c: Likewise.
+ * util/grub-script-check.c: Likewise.
+
2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
len = (leng > BUF_SIZE) ? BUF_SIZE : leng;
if (grub_disk_read (dev->disk, 0, skip, len, buf))
- grub_util_error (_("disk read fails at offset %lld, length %d"),
- skip, len);
+ grub_util_error (_("disk read fails at offset %lld, length %lld"),
+ (long long) skip, (long long) len);
if (hook (skip, buf, len, hook_arg))
break;
sz = grub_file_read (file, buf, (len > BUF_SIZE) ? BUF_SIZE : len);
if (sz < 0)
{
- grub_util_error (_("read error at offset %llu: %s"), ofs,
- grub_errmsg);
+ grub_util_error (_("read error at offset %llu: %s"),
+ (unsigned long long) ofs, grub_errmsg);
break;
}
static char buf_1[BUF_SIZE];
if ((int) fread (buf_1, 1, len, ff) != len)
{
- grub_util_error (_("read error at offset %llu: %s"), ofs,
- grub_errmsg);
+ grub_util_error (_("read error at offset %llu: %s"),
+ (unsigned long long) ofs, grub_errmsg);
return 1;
}
for (i = 0; i < len; i++, ofs++)
if (buf_1[i] != buf[i])
{
- grub_util_error (_("compare fail at offset %llu"), ofs);
+ grub_util_error (_("compare fail at offset %llu"),
+ (unsigned long long) ofs);
return 1;
}
}
|| (core_size > (0xffff << GRUB_DISK_SECTOR_BITS))
|| (kernel_size + bss_size + GRUB_KERNEL_I386_PC_LINK_ADDR > 0x68000))
grub_util_error (_("core image is too big (0x%x > 0x%x)"),
- GRUB_KERNEL_I386_PC_LINK_ADDR + core_size,
+ GRUB_KERNEL_I386_PC_LINK_ADDR + (unsigned) core_size,
0x78000);
/* fallthrough */
case IMAGE_COREBOOT:
case IMAGE_QEMU:
if (kernel_size + bss_size + GRUB_KERNEL_I386_PC_LINK_ADDR > 0x68000)
grub_util_error (_("kernel image is too big (0x%x > 0x%x)"),
- kernel_size + bss_size + GRUB_KERNEL_I386_PC_LINK_ADDR,
+ (unsigned) kernel_size + (unsigned) bss_size
+ + GRUB_KERNEL_I386_PC_LINK_ADDR,
0x68000);
break;
case IMAGE_LOONGSON_ELF:
(unsigned long long) offset);
break;
default:
- grub_util_error (_("relocation 0x%x is not implemented yet"),
- ELF_R_TYPE (info));
+ grub_util_error (_("relocation 0x%llx is not implemented yet"),
+ (unsigned long long) ELF_R_TYPE (info));
break;
}
break;
}
default:
- grub_util_error (_("relocation 0x%x is not implemented yet"),
- ELF_R_TYPE (info));
+ grub_util_error (_("relocation 0x%llx is not implemented yet"),
+ (unsigned long long) ELF_R_TYPE (info));
break;
}
break;
break;
default:
- grub_util_error (_("relocation 0x%x is not implemented yet"),
- ELF_R_TYPE (info));
+ grub_util_error (_("relocation 0x%llx is not implemented yet"),
+ (unsigned long long) ELF_R_TYPE (info));
break;
}
break;
#endif
break;
default:
- grub_util_error (_("relocation 0x%x is not implemented yet"),
- ELF_R_TYPE (info));
+ grub_util_error (_("relocation 0x%llx is not implemented yet"),
+ (unsigned long long) ELF_R_TYPE (info));
break;
}
break;
}
if (! found_cmd)
{
- fprintf (stderr, _("Script contains no commands and will do nothing\n"),
+ fprintf (stderr, _("Script `%s' contains no commands and will do nothing\n"),
ctx.arguments.filename);
return 1;
}