changeset 308:d64d82910fa2

RedBoot console performance tweak
author msalter
date Tue, 27 Aug 2002 01:31:49 +0000
parents 906a5d289c6d
children 59d0679e58c3
files packages/redboot/current/ChangeLog packages/redboot/current/src/net/net_io.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-08-22  Mark Salter  <msalter@redhat.com>
+
+	* src/net/net_io.c (net_io_putc): Don't flush on every \n.
+
 2002-08-20  Thomas Koeller  <thomas@koeller.dyndns.org>
 
     	* cdl/redboot.cdl:
--- a/packages/redboot/current/src/net/net_io.c
+++ b/packages/redboot/current/src/net/net_io.c
@@ -302,7 +302,7 @@ net_io_putc(void* __ch_data, cyg_uint8 c
         have_hash = true;
         hash_count = 0;
     }
-    if ((++out_buflen == sizeof(out_buf)) || (c == '\n') ||
+    if ((++out_buflen == sizeof(out_buf)) ||
         (have_hash && (++hash_count == 3))) {
         net_io_flush();
         have_dollar = false;