Browse Source

Linker symbols no longer defined in etherboot.h

Use %m to print error
tags/v0.9.3
Michael Brown 19 years ago
parent
commit
307cf36fca
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      src/core/main.c

+ 7
- 4
src/core/main.c View File

@@ -31,6 +31,9 @@ Literature dealing with the network protocols:
31 31
 #include <lib.h>
32 32
 #endif
33 33
 
34
+/* Linker symbols */
35
+extern char _bss[], _ebss[];
36
+
34 37
 jmp_buf	restart_etherboot;
35 38
 int	url_port;		
36 39
 
@@ -199,7 +202,7 @@ int main ( void ) {
199 202
 		/* Probe boot device */
200 203
 		if ( ! probe ( &dev ) ) {
201 204
 			/* Device found on bus, but probe failed */
202
-			printf ( "...probe failed\n" );
205
+			printf ( "...probe failed: %m\n" );
203 206
 			continue;
204 207
 		}
205 208
 
@@ -212,14 +215,14 @@ int main ( void ) {
212 215
 		/* Configure boot device */
213 216
 		if ( ! configure ( &dev ) ) {
214 217
 			/* Configuration (e.g. DHCP) failed */
215
-			printf ( "...configuration failed\n" );
218
+			printf ( "...configuration failed: %m\n" );
216 219
 			continue;
217 220
 		}
218 221
 
219 222
 		/* Load boot file from the device */
220 223
 		if ( ! autoload ( &dev, &image, &image_context ) ) {
221 224
 			/* Load (e.g. TFTP) failed */
222
-			printf ( "...load failed\n" );
225
+			printf ( "...load failed: %m\n" );
223 226
 			continue;
224 227
 		}
225 228
 
@@ -233,7 +236,7 @@ int main ( void ) {
233 236
 		/* Boot the image */
234 237
 		if ( ! image->boot ( image_context ) ) {
235 238
 			/* Boot failed */
236
-			printf ( "...boot failed\n" );
239
+			printf ( "...boot failed: %m\n" );
237 240
 			continue;
238 241
 		}
239 242
 		

Loading…
Cancel
Save