diff --git a/ChangeLog b/ChangeLog index 158f2dfdf..e6080d852 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-22 Vladimir Serbinenko + + * grub-core/lib/progress.c (grub_file_progress_hook_real): Use + divmod64 for offset division. + 2013-10-22 Paulo Flabiano Smorigo Rename .bzrignore to .gitignore. Add "*.o" rule. diff --git a/grub-core/lib/progress.c b/grub-core/lib/progress.c index 8b34c6a2d..014419706 100644 --- a/grub-core/lib/progress.c +++ b/grub-core/lib/progress.c @@ -57,7 +57,7 @@ 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), - (100 * file->progress_offset) / file->size); + grub_divmod64 (100 * file->progress_offset, file->size, 0)); char *ptr = buffer + grub_strlen (buffer); grub_snprintf (ptr, sizeof (buffer) - (ptr - buffer), "%s ]",