* grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
This commit is contained in:
parent
cc6fb517de
commit
66a07ce2f8
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
|
||||
|
||||
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Remove practice of assigning random const pointers to device id.
|
||||
|
|
|
@ -101,12 +101,18 @@ grub_mini_cmd_dump (struct grub_command *cmd __attribute__ ((unused)),
|
|||
if (argc == 0)
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, "no address specified");
|
||||
|
||||
addr = (grub_uint8_t *) grub_strtoul (argv[0], 0, 0);
|
||||
#if GRUB_CPU_SIZEOF_VOID_P == GRUB_CPU_SIZEOF_LONG
|
||||
#define grub_strtoaddr grub_strtoul
|
||||
#else
|
||||
#define grub_strtoaddr grub_strtoull
|
||||
#endif
|
||||
|
||||
addr = (grub_uint8_t *) grub_strtoaddr (argv[0], 0, 0);
|
||||
if (grub_errno)
|
||||
return grub_errno;
|
||||
|
||||
if (argc > 1)
|
||||
size = (grub_size_t) grub_strtoul (argv[1], 0, 0);
|
||||
size = (grub_size_t) grub_strtoaddr (argv[1], 0, 0);
|
||||
|
||||
while (size--)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue