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

Loading…
Cancel
Save