[PATCH 1/3] fix command loadb

Eric Bénard eric at eukrea.com
Thu Jun 24 05:53:40 EDT 2010


Le 24/06/2010 11:49, Eric Bénard a écrit :
> which was broken after commit c3789cd49b43ec1c414ba1b0e9f48e8ccc19f8e1
>
this patch is only compile tested so the fix may be wrong.

Eric

> Signed-off-by: Eric Bénard<eric at eukrea.com>
> ---
>   commands/loadb.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/commands/loadb.c b/commands/loadb.c
> index 6740ef4..437b60f 100644
> --- a/commands/loadb.c
> +++ b/commands/loadb.c
> @@ -724,7 +724,7 @@ static int do_load_serial_bin(struct command *cmdtp, int argc, char *argv[])
>   		printf("%s:No console device with STDIN and STDOUT\n", argv[0]);
>   		return -ENODEV;
>   	}
> -	current_baudrate = simple_strtoul(cdev->baudrate_string, NULL, 10);
> +	current_baudrate = (int)simple_strtoul(dev_get_param(cdev->dev, "baudrate"), NULL, 10);
>
>   	/* Load Defaults */
>   	if (load_baudrate == 0)




More information about the barebox mailing list