* grub-core/lib/progress.c (grub_file_progress_hook_real): Use
divmod64 for offset division.
This commit is contained in:
parent
863c590b1e
commit
238f048987
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/progress.c (grub_file_progress_hook_real): Use
|
||||||
|
divmod64 for offset division.
|
||||||
|
|
||||||
2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
|
2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
|
||||||
|
|
||||||
Rename .bzrignore to .gitignore. Add "*.o" rule.
|
Rename .bzrignore to .gitignore. Add "*.o" rule.
|
||||||
|
|
|
@ -57,7 +57,7 @@ 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),
|
||||||
(100 * file->progress_offset) / file->size);
|
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 ]",
|
||||||
|
|
Loading…
Reference in a new issue