[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 <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2010-07-14 12:01:20 +01:00
parent 9f3c0c1f39
commit 7aa1d70e52
2 changed files with 88 additions and 28 deletions

View File

@@ -4,13 +4,21 @@
#include <ipxe/io.h>
#include <console.h>
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" );