[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;