On Tuesday 24 July 2012 16:10:56 Joe Hershberger wrote:
> --- a/drivers/net/netconsole.c
> +++ b/drivers/net/netconsole.c
> 
> -static char input_buffer[512];
> +#ifdef CONFIG_NETCONSOLE_BUFFER_SIZE
> +#define BUFFER_SIZE CONFIG_NETCONSOLE_BUFFER_SIZE
> +#else
> +#define BUFFER_SIZE 512
> +#endif
> +
> +static char input_buffer[BUFFER_SIZE];

#ifndef CONFIG_NETCONSOLE_BUFFER_SIZE
# define CONFIG_NETCONSOLE_BUFFER_SIZE 512
#endif
static char input_buffer[CONFIG_NETCONSOLE_BUFFER_SIZE];

>       while (len) {
> -             int send_len = min(len, 512);
> +             int send_len = min(len, BUFFER_SIZE);

        int send_len = min(len, sizeof(input_buffer));
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to