2010-08-08 Robert Millan <rmh@gnu.org>
* util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
This commit is contained in:
parent
0d8286f328
commit
7117542069
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-08-08 Robert Millan <rmh@gnu.org>
|
||||||
|
|
||||||
|
* util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
|
||||||
|
|
||||||
2010-08-08 Robert Millan <rmh@gnu.org>
|
2010-08-08 Robert Millan <rmh@gnu.org>
|
||||||
|
|
||||||
* util/grub.d/10_kfreebsd.in: When files required for ZFS do not
|
* util/grub.d/10_kfreebsd.in: When files required for ZFS do not
|
||||||
|
|
|
@ -157,7 +157,7 @@ read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len))
|
||||||
sz = grub_file_read (file, buf, (len > BUF_SIZE) ? BUF_SIZE : len);
|
sz = grub_file_read (file, buf, (len > BUF_SIZE) ? BUF_SIZE : len);
|
||||||
if (sz < 0)
|
if (sz < 0)
|
||||||
{
|
{
|
||||||
grub_util_error ("read error at offset %llu", ofs);
|
grub_util_error ("read error at offset %llu: %s", ofs, grub_errmsg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ cmd_cmp (char *src, char *dest)
|
||||||
{
|
{
|
||||||
if ((int) fread (buf_1, 1, len, ff) != len)
|
if ((int) fread (buf_1, 1, len, ff) != len)
|
||||||
{
|
{
|
||||||
grub_util_error ("read error at offset %llu", ofs);
|
grub_util_error ("read error at offset %llu: %s", ofs, grub_errmsg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue