From 7aa1d70e52664ed93a9259f81bae7be3b5c19a8f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 14 Jul 2010 12:01:20 +0100 Subject: [debug] Expose pause() and more() debugging functions Include the pause() and more() debugging functions within the general iPXE debugging framework, by introducing DBGxxx_PAUSE() and DBGxxx_MORE() macros. Signed-off-by: Michael Brown --- src/core/debug.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/debug.c b/src/core/debug.c index 0e79a1abb..7a9a9c848 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -4,13 +4,21 @@ #include #include -void pause ( void ) { - printf ( "\nPress a key" ); +/** + * Pause until a key is pressed + * + */ +void dbg_pause ( void ) { + printf ( "\nPress a key..." ); getchar(); - printf ( "\r \r" ); + printf ( "\r \r" ); } -void more ( void ) { +/** + * Indicate more data to follow and pause until a key is pressed + * + */ +void dbg_more ( void ) { printf ( "---more---" ); getchar(); printf ( "\r \r" ); -- cgit v1.2.3-55-g7522