]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-08-08 Robert Millan <rmh@gnu.org>
authorRobert Millan <rmh@aybabtu.com>
Sun, 8 Aug 2010 20:47:32 +0000 (22:47 +0200)
committerRobert Millan <rmh@aybabtu.com>
Sun, 8 Aug 2010 20:47:32 +0000 (22:47 +0200)
* util/grub-fstest.c (read_file, cmd_cmp): Improve error message.

ChangeLog
util/grub-fstest.c

index df8d040fd57674381a9f2a510d9d56bd24523e35..4d7361472aa76785f5cd7382c7b4b2d2e1bf8831 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index f1692c0a3f7e77e8c4ad258c0a5c4a2f4f77071b..2c80b964ce4c0bd87a876967f2d36ac61aa467b0 100644 (file)
@@ -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;
       }