2008-06-13 Pavel Roskin <proski@gnu.org>

* commands/ls.c (grub_ls_list_files): Fix format warnings.
This commit is contained in:
proski 2008-06-13 21:51:14 +00:00
parent dfe9ddd4cb
commit d687651c07
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View 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);