]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-06-13 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Fri, 13 Jun 2008 21:51:14 +0000 (21:51 +0000)
committerproski <proski@localhost>
Fri, 13 Jun 2008 21:51:14 +0000 (21:51 +0000)
* commands/ls.c (grub_ls_list_files): Fix format warnings.

ChangeLog
commands/ls.c

index 22beade10afde948d889b3dd8fcf0cdb098f96a5..f7a885b0ed4b373d5f164f86b85b774a39dfd4cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-13  Pavel Roskin  <proski@gnu.org>
+
+       * commands/ls.c (grub_ls_list_files): Fix format warnings.
+
 2008-06-13  Bean  <bean123ch@gmail.com>
 
        * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
index e7b630275dbed356d2d2eab026102eef3364e85e..77af426b1bcb375805ea387dcf0862bda82df567 100644 (file)
@@ -105,7 +105,7 @@ grub_ls_list_files (char *dirname, int longlist, int all, int human)
            }
 
          if (! human)
-           grub_printf ("%-12llu", file->size);
+           grub_printf ("%-12llu", (unsigned long long) file->size);
          else
            {
              float fsize = file->size;
@@ -126,7 +126,7 @@ grub_ls_list_files (char *dirname, int longlist, int all, int human)
                  grub_printf ("%-12s", buf);
                }
              else
-               grub_printf ("%-12llu", file->size);
+               grub_printf ("%-12llu", (unsigned long long) file->size);
              
            }
          grub_file_close (file);