diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-11-11 13:48:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-11-17 12:06:59 +0100 |
commit | 94c3370843c529cb48d8cb9e14d83897ed9f750e (patch) | |
tree | 3830342cbc26c3f2c8b359aba561dea67f8a948d /commands | |
parent | 28e81565a41af6b2dbf142416027f9c9a95dfe4b (diff) | |
download | barebox-94c3370843c529cb48d8cb9e14d83897ed9f750e.tar.gz barebox-94c3370843c529cb48d8cb9e14d83897ed9f750e.tar.xz |
loads: Use putchar rather than console_putc
'putchar' is a standard function to output a character. Use this one
instead of the lower level console_putc.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/loads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/loads.c b/commands/loads.c index 24093e191f..aa3095ee8c 100644 --- a/commands/loads.c +++ b/commands/loads.c @@ -127,7 +127,7 @@ static ulong load_serial(ulong offset) } if (!do_echo) { /* print a '.' every 100 lines */ if ((++line_count % 100) == 0) - console_putc(CONSOLE_STDOUT, '.'); + putchar('.'); } } @@ -144,7 +144,7 @@ static int read_record(char *buf, ulong len) for (p=buf; p < buf+len; ++p) { c = getc(); /* read character */ if (do_echo) - console_putc(CONSOLE_STDOUT, c); + putchar(c); switch (c) { case '\r': @@ -259,7 +259,7 @@ static int write_record(char *buf) char c; while ((c = *buf++)) - console_putc(CONSOLE_STDOUT, c); + putchar(c); /* Check for the console hangup (if any different from serial) */ |