mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-04 15:15:07 +00:00
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
@ -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>
|
||||
|
||||
* 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);
|
||||
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;
|
||||
}
|
||||
|
||||
@ -211,7 +211,7 @@ cmd_cmp (char *src, char *dest)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user