Don't trace the buffer length in place of the property size.
Signed-off-by: Andreas Färber <andreas.faerber(a)web.de>
---
libopenbios/client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libopenbios/client.c b/libopenbios/client.c
index 16e4323..2b78dcc 100644
--- a/libopenbios/client.c
+++ b/libopenbios/client.c
@@ -170,7 +170,7 @@ static void dump_return(prom_args_t *pb)
} else if (strcmp(pb->service, "getproplen") == 0) {
printk("0x%08lx\n", pb->args[pb->nargs]);
} else if (strcmp(pb->service, "getprop") == 0) {
- printk("%ld\n", pb->args[3]);
+ printk("%ld\n", pb->args[pb->nargs]);
memdump((char*)pb->args[2], pb->args[3]);
} else if (strcmp(pb->service, "nextprop") == 0) {
printk("%ld\n", pb->args[pb->nargs]);
--
1.7.3