diff --git a/ChangeLog b/ChangeLog index 7a2a07b6a..3c3933f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-09 Vladimir Serbinenko + + * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for + size_t. + (grub_util_write_image): Likewise. + 2013-10-08 Vladimir Serbinenko * grub-core/osdep/basic/random.c: New file. Abort on an attempt to diff --git a/util/misc.c b/util/misc.c index ad9db79f8..0893e7d68 100644 --- a/util/misc.c +++ b/util/misc.c @@ -140,8 +140,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%" PRIxGRUB_SIZE " bytes at offset 0x%llx", - size, (unsigned long long) offset); + grub_util_info ("writing 0x%llx bytes at offset 0x%llx", + (unsigned long long) size, (unsigned long long) offset); if (fseeko (out, offset, SEEK_SET) == -1) grub_util_error (_("cannot seek `%s': %s"), name, strerror (errno)); @@ -154,7 +154,7 @@ void grub_util_write_image (const char *img, size_t size, FILE *out, const char *name) { - grub_util_info ("writing 0x%" PRIxGRUB_SIZE " bytes", size); + grub_util_info ("writing 0x%llx bytes", (unsigned long long) size); if (fwrite (img, 1, size, out) != size) { if (!name)