Signed-off-by: Glenn Washburn <developm...@efficientek.com>
---
 grub-core/disk/ata.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/grub-core/disk/ata.c b/grub-core/disk/ata.c
index 685f33a19..3620a282e 100644
--- a/grub-core/disk/ata.c
+++ b/grub-core/disk/ata.c
@@ -219,8 +219,9 @@ grub_ata_setaddress (struct grub_ata *dev,
        if (dev->sectors_per_track == 0
            || dev->heads == 0)
          return grub_error (GRUB_ERR_OUT_OF_RANGE,
-                            "sector %d cannot be addressed "
-                            "using CHS addressing", sector);
+                            "sector %" PRIxGRUB_UINT64_T " cannot be "
+                            "addressed using CHS addressing",
+                            sector);
 
        /* Calculate the sector, cylinder and head to use.  */
        sect = ((grub_uint32_t) sector % dev->sectors_per_track) + 1;
@@ -232,8 +233,9 @@ grub_ata_setaddress (struct grub_ata *dev,
            || cylinder > dev->cylinders
            || head > dev->heads)
          return grub_error (GRUB_ERR_OUT_OF_RANGE,
-                            "sector %d cannot be addressed "
-                            "using CHS addressing", sector);
+                            "sector %" PRIxGRUB_UINT64_T " cannot be "
+                            "addressed using CHS addressing",
+                            sector);
        
        parms->taskfile.disk = 0xE0 | head;
        parms->taskfile.sectnum = sect;
-- 
2.27.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to