* util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for

size_t.
	(grub_util_write_image): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-09 05:33:09 +02:00
parent b102ce6909
commit 22f98db270
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
* 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 <phcoder@gmail.com>
* grub-core/osdep/basic/random.c: New file. Abort on an attempt to

View File

@ -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)