aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2005-05-18 14:43:27 +0000
committerMichael Brown <mcb30@etherboot.org>2005-05-18 14:43:27 +0000
commit307cf36fca79e9f72b8574f7d6afaed75a8d0046 (patch)
tree9e1b6d1c1d9fec752612c55105da40627ac3339f /src/core/main.c
parent5a0f1bf421d1fb111ccbc3133a2e3e8ad6bb6a59 (diff)
downloadipxe-307cf36fca79e9f72b8574f7d6afaed75a8d0046.tar.gz
Linker symbols no longer defined in etherboot.h
Use %m to print error
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 3a112eee..e0cac222 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -31,6 +31,9 @@ Literature dealing with the network protocols:
#include <lib.h>
#endif
+/* Linker symbols */
+extern char _bss[], _ebss[];
+
jmp_buf restart_etherboot;
int url_port;
@@ -199,7 +202,7 @@ int main ( void ) {
/* Probe boot device */
if ( ! probe ( &dev ) ) {
/* Device found on bus, but probe failed */
- printf ( "...probe failed\n" );
+ printf ( "...probe failed: %m\n" );
continue;
}
@@ -212,14 +215,14 @@ int main ( void ) {
/* Configure boot device */
if ( ! configure ( &dev ) ) {
/* Configuration (e.g. DHCP) failed */
- printf ( "...configuration failed\n" );
+ printf ( "...configuration failed: %m\n" );
continue;
}
/* Load boot file from the device */
if ( ! autoload ( &dev, &image, &image_context ) ) {
/* Load (e.g. TFTP) failed */
- printf ( "...load failed\n" );
+ printf ( "...load failed: %m\n" );
continue;
}
@@ -233,7 +236,7 @@ int main ( void ) {
/* Boot the image */
if ( ! image->boot ( image_context ) ) {
/* Boot failed */
- printf ( "...boot failed\n" );
+ printf ( "...boot failed: %m\n" );
continue;
}