[OpenBIOS] [PATCH 1/3] Fix getprop return value trace

Blue Swirl blauwirbel at gmail.com
Sat Oct 9 12:17:59 CEST 2010


Thanks, applied all.

On Fri, Oct 8, 2010 at 1:49 PM, Andreas Färber <andreas.faerber at web.de> wrote:
> Don't trace the buffer length in place of the property size.
>
> Signed-off-by: Andreas Färber <andreas.faerber at 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
>
>
> --
> OpenBIOS                 http://openbios.org/
> Mailinglist:  http://lists.openbios.org/mailman/listinfo
> Free your System - May the Forth be with you



More information about the OpenBIOS mailing list