From 7c67ec1d20c444c9049ab9099d685a906bf70354 Mon Sep 17 00:00:00 2001 From: blueswirl Date: Sat, 9 Oct 2010 10:16:19 +0000 Subject: [PATCH] Fix getprop return value trace MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Don't trace the buffer length in place of the property size. Signed-off-by: Andreas Färber Signed-off-by: Blue Swirl git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@889 f158a5a8-5612-0410-a976-696ce0be7e32 --- libopenbios/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.11.4.GIT