From ea899a5760267716d44f2e50705b5b52d3e10a3a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 25 Oct 2013 15:22:30 +0200 Subject: [PATCH] * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to unsigned long long when using %llu. --- ChangeLog | 5 +++++ grub-core/lib/progress.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e7ae0a3e1..6ee59001f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-25 Vladimir Serbinenko + + * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to + unsigned long long when using %llu. + 2013-10-25 Vladimir Serbinenko * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh diff --git a/grub-core/lib/progress.c b/grub-core/lib/progress.c index c2c68c68d..4a2164502 100644 --- a/grub-core/lib/progress.c +++ b/grub-core/lib/progress.c @@ -57,7 +57,8 @@ grub_file_progress_hook_real (grub_disk_addr_t sector __attribute__ ((unused)), partial_file_name, grub_get_human_size (file->progress_offset, GRUB_HUMAN_SIZE_NORMAL), - grub_divmod64 (100 * file->progress_offset, file->size, 0)); + (unsigned long long) grub_divmod64 (100 * file->progress_offset, + file->size, 0)); char *ptr = buffer + grub_strlen (buffer); grub_snprintf (ptr, sizeof (buffer) - (ptr - buffer), "%s ]",