summaryrefslogtreecommitdiffstats
path: root/src/core/debug.c
diff options
context:
space:
mode:
authorMichael Brown2010-07-14 13:01:20 +0200
committerMichael Brown2010-07-14 13:28:18 +0200
commit7aa1d70e52664ed93a9259f81bae7be3b5c19a8f (patch)
tree588ca15cda414477533d0bebf633ded21e4a2f4b /src/core/debug.c
parent[debug] Remove unused guard_region() and check_region() functions (diff)
downloadipxe-7aa1d70e52664ed93a9259f81bae7be3b5c19a8f.tar.gz
ipxe-7aa1d70e52664ed93a9259f81bae7be3b5c19a8f.tar.xz
ipxe-7aa1d70e52664ed93a9259f81bae7be3b5c19a8f.zip
[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>
Diffstat (limited to 'src/core/debug.c')
-rw-r--r--src/core/debug.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/debug.c b/src/core/debug.c
index 0e79a1ab..7a9a9c84 100644
--- a/src/core/debug.c
+++ b/src/core/debug.c
@@ -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" );