From: Thomas Renninger Date: Tue, 27 Jan 2009 16:38:52 +0000 (+0100) Subject: ACPI: Fix compiler warnings introduced by 32 to 64 bit acpi conversions X-Git-Tag: v2.6.27.15~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9db287c1a187d68dab05c1823265baffa47c6297;p=karo-tx-linux.git ACPI: Fix compiler warnings introduced by 32 to 64 bit acpi conversions commit: 27663c5855b10af9ec67bc7dfba001426ba21222 forgot to convert things at two prints. Cc: Matthew Wilcox Cc: Len Brown Signed-off-by: Thomas Renninger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/intel_menlow.c b/drivers/misc/intel_menlow.c index bd372ea11b0a..f2257a79166f 100644 --- a/drivers/misc/intel_menlow.c +++ b/drivers/misc/intel_menlow.c @@ -104,7 +104,7 @@ static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev, if (ACPI_FAILURE(status)) return -EFAULT; - return sprintf(buf, "%ld\n", value); + return sprintf(buf, "%lld\n", value); } static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index b291ee68b4f1..881fdd2b7313 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c @@ -204,7 +204,7 @@ static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status) err("APLS evaluation failed: 0x%08x\n", stat); return -ENODEV; } else if (!rc) { - err("APLS method failed: 0x%08lx\n", rc); + err("APLS method failed: 0x%08llx\n", rc); return -ERANGE; } return 0;