commit | 28da92a61fe1d3e767792085d9bc731bc5fa96a6 | [log] [tgz] |
---|---|---|
author | Travis Geiselbrecht <geist@foobox.com> | Sun Jun 28 11:12:40 2009 -0700 |
committer | Ajay Dudani <adudani@codeaurora.org> | Thu Jul 28 12:04:36 2011 -0700 |
tree | e03410bfcbb7de5b327d08972537b3d72eecab23 | |
parent | d890c35378593c3bb6be8a5c00f14e626dee3032 [diff] [blame] |
[debug] change the dgetc signature to match external sources
diff --git a/platform/omap5912/debug.c b/platform/omap5912/debug.c index d190fa0..e576208 100644 --- a/platform/omap5912/debug.c +++ b/platform/omap5912/debug.c
@@ -94,12 +94,15 @@ uart_putc(0, c); } -int dgetc(char *c) +int dgetc(char *c, bool wait) { int _c; - if ((_c = uart_getc(0, false)) < 0) - return -1; + while ((_c = uart_getc(0, false)) < 0) { + if (!wait) { + return -1; + } + } *c = _c; return 0;