]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb5062fe3901cd61808662a1cc0187ace4aefc188
tree1b0b56f463a447ac097305b2be4462923c20dda2
parent7737b9382748058f80e41f354b0682e692ad8d9a
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