]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-08-26 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Tue, 26 Aug 2008 19:09:07 +0000 (19:09 +0000)
committerrobertmh <robertmh@localhost>
Tue, 26 Aug 2008 19:09:07 +0000 (19:09 +0000)
        * util/biosdisk.c (grub_util_biosdisk_open, open_device)
        (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
        descriptive.

ChangeLog
util/biosdisk.c

index a6c7cb5f64db1f9bc4a84a235ac9bfd5c3009f86..79c1d435e51ec586bc1dda54d0481ea93240b1b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-26  Robert Millan  <rmh@aybabtu.com>
+
+       * util/biosdisk.c (grub_util_biosdisk_open, open_device)
+       (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
+       descriptive.
+
 2008-08-23  Bean  <bean123ch@gmail.com>
 
        * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
index 1137e98fea7564620114e91c631867bcea7e11e5..fa1143b1f0cb310cea1c8f0e15dd92a585fa77da 100644 (file)
@@ -164,7 +164,7 @@ grub_util_biosdisk_open (const char *name, grub_disk_t disk)
 
     fd = open (map[drive].device, O_RDONLY);
     if (fd == -1)
-      return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[drive].device);
+      return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' while attempting to get disk size", map[drive].device);
 
     if (fstat (fd, &st) < 0 || ! S_ISBLK (st.st_mode))
       {
@@ -288,7 +288,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags)
       is_partition = linux_find_partition (dev, disk->partition->start);
     
     /* Open the partition.  */
-    grub_util_info ("opening the device `%s'", dev);
+    grub_util_info ("opening the device `%s' in open_device()", dev);
     fd = open (dev, flags);
     if (fd < 0)
       {
@@ -306,7 +306,7 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags)
   fd = open (map[disk->id].device, flags);
   if (fd < 0)
     {
-      grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[disk->id].device);
+      grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' in open_device()", map[disk->id].device);
       return -1;
     }
 #endif /* ! __linux__ */
@@ -835,7 +835,7 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
     fd = open (os_dev, O_RDONLY);
     if (fd == -1)
       {
-       grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", os_dev);
+       grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' while attempting to get disk geometry", os_dev);
        free (name);
        return 0;
       }