Revert previous commit: EFI_STATUS is a 64-bit integral on ia64. Fix the

compile warning on i386 (where EFI_STATUS is a 32-bit integral) by casting
the status argument to u_long instead.

Pointy hat: brucec
MFC after: 3 days
This commit is contained in:
marcel 2011-03-16 00:08:10 +00:00
parent b7fd4888f8
commit c8313b3029

View File

@ -204,7 +204,7 @@ efipart_readwrite(EFI_BLOCK_IO *blkio, int rw, daddr_t blk, daddr_t nblks,
}
if (EFI_ERROR(status))
printf("%s: rw=%d, status=%u\n", __func__, rw, status);
printf("%s: rw=%d, status=%lu\n", __func__, rw, (u_long)status);
return (efi_status_to_errno(status));
}