]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 28 Apr 2013 13:17:43 +0000 (15:17 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 28 Apr 2013 13:17:43 +0000 (15:17 +0200)
ChangeLog
grub-core/disk/ahci.c

index 727a8c8e3e49c512a9cf3c94503472041f4400cc..8b4206eaffcbe7350df9ab37570e03bc6824dc86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
+
 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
index 47fd423e42f61a57ae10a4858586c09d1aba4cf9..e6170426ea505eb3e72038e04b80c6bcaf961fba 100644 (file)
@@ -531,8 +531,8 @@ grub_ahci_pciinit (grub_pci_device_t dev,
                      adevs[i]->hba->ports[adevs[i]->port].sata_error);
 
        grub_dprintf ("ahci", "offset: %x, tfd:%x, CMD: %x\n",
-                     (char *) &adevs[i]->hba->ports[adevs[i]->port].task_file_data - 
-                     (char *) adevs[i]->hba,
+                     (int) ((char *) &adevs[i]->hba->ports[adevs[i]->port].task_file_data - 
+                            (char *) adevs[i]->hba),
                      adevs[i]->hba->ports[adevs[i]->port].task_file_data,
                      adevs[i]->hba->ports[adevs[i]->port].command);
 
@@ -545,8 +545,8 @@ grub_ahci_pciinit (grub_pci_device_t dev,
     if (adevs[i])
       {
        grub_dprintf ("ahci", "offset: %x, tfd:%x, CMD: %x\n",
-                     (char *) &adevs[i]->hba->ports[adevs[i]->port].task_file_data - 
-                     (char *) adevs[i]->hba,
+                     (int) ((char *) &adevs[i]->hba->ports[adevs[i]->port].task_file_data - 
+                            (char *) adevs[i]->hba),
                      adevs[i]->hba->ports[adevs[i]->port].task_file_data,
                      adevs[i]->hba->ports[adevs[i]->port].command);