From: Mike Frysinger Date: Wed, 25 Jul 2012 12:07:52 -0400 Subject: [U-Boot] [PATCH] net: Make the netconsole buffer size configurable In-Reply-To: <1343160656-30085-1-git-send-email-joe.hershberger@ni.com> References: <1343160656-30085-1-git-send-email-joe.hershberger@ni.com> Message-ID: <201207251207.54179.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: