From 7de278582748d32120a353645111bf81f1932e31 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 4 Apr 2014 13:35:36 +0000 Subject: Fix printf format mismatches Sponsored by: The FreeBSD Foundation --- sys/boot/amd64/efi/copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/boot/amd64/efi/copy.c') diff --git a/sys/boot/amd64/efi/copy.c b/sys/boot/amd64/efi/copy.c index bebe42ed5ec2..c6cc3490817a 100644 --- a/sys/boot/amd64/efi/copy.c +++ b/sys/boot/amd64/efi/copy.c @@ -51,8 +51,8 @@ x86_efi_copy_init(void) status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData, STAGE_PAGES, &staging); if (EFI_ERROR(status)) { - printf("failed to allocate staging area: %d\n", - status & EFI_ERROR_MASK); + printf("failed to allocate staging area: %lu\n", + (unsigned long)(status & EFI_ERROR_MASK)); return (status); } -- cgit v1.2.3