From ddcd2bb171a00429f6f1c6cf42c47f8888c14650 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Tue, 31 Aug 2004 02:42:01 -0700 Subject: [PATCH] [PATCH] acpiphp_ibm.c 64bit portability Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- drivers/pci/hotplug/acpiphp_ibm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index 1264a45f42aac..fe7866c1ccbd9 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c @@ -340,7 +340,7 @@ static ssize_t ibm_read_apci_table(struct kobject *kobj, int bytes_read = -EINVAL; char *table = NULL; - dbg("%s: pos = %d, size = %d\n", __FUNCTION__, (int)pos, size); + dbg("%s: pos = %d, size = %zd\n", __FUNCTION__, (int)pos, size); if (pos == 0) { bytes_read = ibm_get_table_from_acpi(&table); @@ -383,8 +383,8 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle, if(info.current_status && (info.valid & ACPI_VALID_HID) && (!strcmp(info.hardware_id.value, IBM_HARDWARE_ID1) || !strcmp(info.hardware_id.value, IBM_HARDWARE_ID2))) { - dbg("found hardware: %s, handle: %x\n", info.hardware_id.value, - (unsigned int)handle); + dbg("found hardware: %s, handle: %p\n", info.hardware_id.value, + handle); *phandle = handle; /* returning non-zero causes the search to stop * and returns this value to the caller of -- 2.53.0