[PATCH 5/5] apci: dump slit v3

Yinghai Lu
2008-09-16T18:03:40Z

v2: using boot_printk
v3: using acpi_printk

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
drivers/acpi/numa.c | 8 ++++++++
1 file changed, 8 insertions(+)

Index: linux-2.6/drivers/acpi/numa.c
===================================================================
--- linux-2.6.orig/drivers/acpi/numa.c
+++ linux-2.6/drivers/acpi/numa.c
@@ -150,6 +150,14 @@ static __init int slit_valid(struct acpi
{
int i, j;
int d = slit->locality_count;
+ acpi_printk(KERN_LOG_DEBUG, KERN_DEBUG "ACPI: SLIT: nodes = %d\n", d);
+ for (i = 0; i < d; i++) {
+ for (j = 0; j < d; j++) {
+ u8 val = slit->entry[d*i + j];
+ acpi_printk(KERN_LOG_DEBUG, " %d", val);
+ }
+ acpi_printk(KERN_LOG_DEBUG, "\n");
+ }
for (i = 0; i < d; i++) {
for (j = 0; j < d; j++) {
u8 val = slit->entry[d*i + j];