summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/efi.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2006-06-13 00:18:31 +0200
committerGreg Kroah-Hartman2006-06-27 18:23:59 +0200
commit685143ac1f7a579a3fac9c7f2ac8f82e95af6864 (patch)
tree0fb1ff8fecb7e21593c022ff458b8db6096d6da5 /arch/i386/kernel/efi.c
parent[PATCH] 64bit resource: fix up printks for resources in pcmcia drivers (diff)
downloadkernel-qcow2-linux-685143ac1f7a579a3fac9c7f2ac8f82e95af6864.tar.gz
kernel-qcow2-linux-685143ac1f7a579a3fac9c7f2ac8f82e95af6864.tar.xz
kernel-qcow2-linux-685143ac1f7a579a3fac9c7f2ac8f82e95af6864.zip
[PATCH] 64bit resource: fix up printks for resources in arch and core code
This is needed if we wish to change the size of the resource structures. Based on an original patch from Vivek Goyal <vgoyal@in.ibm.com> and Andrew Morton. (tweaked by Andy Isaacson <adi@hexapodia.org>) Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Andy Isaacson <adi@hexapodia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/i386/kernel/efi.c')
-rw-r--r--arch/i386/kernel/efi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c
index 9202b67c4b2e..8beb0f07d999 100644
--- a/arch/i386/kernel/efi.c
+++ b/arch/i386/kernel/efi.c
@@ -601,8 +601,10 @@ efi_initialize_iomem_resources(struct resource *code_resource,
res->end = res->start + ((md->num_pages << EFI_PAGE_SHIFT) - 1);
res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
if (request_resource(&iomem_resource, res) < 0)
- printk(KERN_ERR PFX "Failed to allocate res %s : 0x%lx-0x%lx\n",
- res->name, res->start, res->end);
+ printk(KERN_ERR PFX "Failed to allocate res %s : "
+ "0x%llx-0x%llx\n", res->name,
+ (unsigned long long)res->start,
+ (unsigned long long)res->end);
/*
* We don't know which region contains kernel data so we try
* it repeatedly and let the resource manager test it.