mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
[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:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user