]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 13:22:30 +0000 (15:22 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 13:22:30 +0000 (15:22 +0200)
unsigned long long when using %llu.

ChangeLog
grub-core/lib/progress.c

index e7ae0a3e12205af2aaebc136d11de1f0a3b1910e..6ee59001f82bdd812f047d74d166bc08eed68eaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index c2c68c68dbafe3d73d8258b6b6ddff27f7f7d94d..4a2164502ee63b445a76eba408437af8a665a8f0 100644 (file)
@@ -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 ]",