diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-07-21 11:34:34 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-07-21 11:34:34 +0200 |
commit | dd9f06f0d57db4f01ecd2f84ddb64dba9f4e6796 (patch) | |
tree | c2265715720cff447efcb5310f30b9c49b3eb732 /common/main.c | |
parent | 501090aaa67b6072ebe8b721c8328d32be607660 (diff) | |
download | u-boot-imx-dd9f06f0d57db4f01ecd2f84ddb64dba9f4e6796.zip u-boot-imx-dd9f06f0d57db4f01ecd2f84ddb64dba9f4e6796.tar.gz u-boot-imx-dd9f06f0d57db4f01ecd2f84ddb64dba9f4e6796.tar.bz2 |
Minor code cleanup.
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/main.c b/common/main.c index ed4cb7b..ef28b3f 100644 --- a/common/main.c +++ b/common/main.c @@ -747,7 +747,7 @@ static int cread_line(char *buf, unsigned int *len) ichar = getcmd_getch(); if ((ichar == '\n') || (ichar == '\r')) { - printf("\n"); + putc('\n'); break; } @@ -804,7 +804,7 @@ static int cread_line(char *buf, unsigned int *len) esc_save[esc_len] = ichar; esc_len = 1; } else { - printf("impossible condition #876\n"); + puts("impossible condition #876\n"); esc_len = 0; } break; @@ -940,7 +940,7 @@ int readline (const char *const prompt) initted = 1; } - printf("%s",prompt); + puts (prompt); return cread_line(p, &len); #else |