* grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
unsigned long long when using %llu.
This commit is contained in:
parent
c6dc6fa175
commit
ea899a5760
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
|
||||
|
|
|
@ -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 ]",
|
||||
|
|
Loading…
Reference in a new issue