]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 10 Dec 2009 13:39:54 +0000 (14:39 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 10 Dec 2009 13:39:54 +0000 (14:39 +0100)
Eliminate grub-fstest 4Gib barrier.

* util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
(read_file): Fix error reporting.

ChangeLog
util/grub-fstest.c

index a1c5d5e8993c634179770855b10f981a98dd8b8b..4a9801412e140595932551e9aa72cbf3920f1b9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Eliminate grub-fstest 4Gib barrier.
+
+       * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
+       (read_file): Fix error reporting.
+
 2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Eliminate hexdump 4Gib barrier.
index 03184b632fdef664bb74eb83acf97a364b5029e0..fa54fe41492bd58e7c58fe2ef747f5d6af4758fb 100644 (file)
@@ -85,7 +85,7 @@ execute_command (char *name, int n, char **args)
 
 #define BUF_SIZE  32256
 
-static grub_off_t skip, leng;
+static grub_disk_addr_t skip, leng;
 
 static void
 read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len))
@@ -140,7 +140,7 @@ read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len))
 
   if (skip > file->size)
     {
-      grub_util_error ("invalid skip value %d.");
+      grub_util_error ("invalid skip value %lld.", (unsigned long long) skip);
       return;
     }