console: simplify puts()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 17 Jul 2017 04:08:32 +0000 (13:08 +0900)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Jul 2017 18:02:47 +0000 (12:02 -0600)
commitc61d0009feb966e0e93254a8c435a1889085e6b8
tree1b0b56f463a447ac097305b2be4462923c20dda2
parent47b98ad0f6779485d0f0c14f337c3eece273eb54
console: simplify puts()

Current puts() and putc() have similar #ifdef / if() conditionals.
Make puts() iterate over putc() to avoid code duplication.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/console.c