[PATCH] acpiphp misc fixes [5/5]

From: Matthew Wilcox <willy_at_debian.org>
Date: 2004-09-04 05:33:54
Two minor fixes:

 - Correct the docbook (parameter renamed to value)
 - If a resource is 64-bit, the debug code was previously truncating its value.

diff -urpNX build-tools/dontdiff linux-2.6/drivers/pci/hotplug/acpiphp_core.c hotplug-2.6/drivers/pci/hotplug/acpiphp_core.c
--- linux-2.6/drivers/pci/hotplug/acpiphp_core.c	2004-05-23 17:52:23.000000000 -0600
+++ hotplug-2.6/drivers/pci/hotplug/acpiphp_core.c	2004-09-03 08:09:15.181670908 -0600
@@ -210,8 +212,7 @@ static int get_adapter_status(struct hot
 /**
  * get_address - get pci address of a slot
  * @hotplug_slot: slot to get status
- * @busdev: pointer to struct pci_busdev (seg, bus, dev)
- *
+ * @value: pointer to struct pci_busdev (seg, bus, dev)
  */
 static int get_address(struct hotplug_slot *hotplug_slot, u32 *value)
 {
diff -urpNX build-tools/dontdiff linux-2.6/drivers/pci/hotplug/acpiphp_res.c hotplug-2.6/drivers/pci/hotplug/acpiphp_res.c
--- linux-2.6/drivers/pci/hotplug/acpiphp_res.c	2004-05-23 17:52:23.000000000 -0600
+++ hotplug-2.6/drivers/pci/hotplug/acpiphp_res.c	2004-09-02 10:51:54.000000000 -0600
@@ -669,8 +669,8 @@ static void dump_resource(struct pci_res
 	cnt = 0;
 
 	while (p) {
-		dbg("[%02d] %08x - %08x\n",
-		    cnt++, (u32)p->base, (u32)p->base + p->length - 1);
+		dbg("[%02d] 0x%llx - 0x%llx\n", cnt++, (long long)p->base,
+				(long long)(p->base + p->length - 1));
 		p = p->next;
 	}
 }

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Sep 3 15:48:41 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:30 EST