* grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to

unsigned long long when using %llu.
This commit is contained in:
Vladimir Serbinenko 2013-10-25 15:22:30 +02:00
parent c6dc6fa175
commit ea899a5760
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
unsigned long long when using %llu.
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh

View file

@ -57,7 +57,8 @@ grub_file_progress_hook_real (grub_disk_addr_t sector __attribute__ ((unused)),
partial_file_name, partial_file_name,
grub_get_human_size (file->progress_offset, grub_get_human_size (file->progress_offset,
GRUB_HUMAN_SIZE_NORMAL), 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); char *ptr = buffer + grub_strlen (buffer);
grub_snprintf (ptr, sizeof (buffer) - (ptr - buffer), "%s ]", grub_snprintf (ptr, sizeof (buffer) - (ptr - buffer), "%s ]",