mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
Linker symbols no longer defined in etherboot.h
Use %m to print error
This commit is contained in:
@@ -31,6 +31,9 @@ Literature dealing with the network protocols:
|
|||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Linker symbols */
|
||||||
|
extern char _bss[], _ebss[];
|
||||||
|
|
||||||
jmp_buf restart_etherboot;
|
jmp_buf restart_etherboot;
|
||||||
int url_port;
|
int url_port;
|
||||||
|
|
||||||
@@ -199,7 +202,7 @@ int main ( void ) {
|
|||||||
/* Probe boot device */
|
/* Probe boot device */
|
||||||
if ( ! probe ( &dev ) ) {
|
if ( ! probe ( &dev ) ) {
|
||||||
/* Device found on bus, but probe failed */
|
/* Device found on bus, but probe failed */
|
||||||
printf ( "...probe failed\n" );
|
printf ( "...probe failed: %m\n" );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,14 +215,14 @@ int main ( void ) {
|
|||||||
/* Configure boot device */
|
/* Configure boot device */
|
||||||
if ( ! configure ( &dev ) ) {
|
if ( ! configure ( &dev ) ) {
|
||||||
/* Configuration (e.g. DHCP) failed */
|
/* Configuration (e.g. DHCP) failed */
|
||||||
printf ( "...configuration failed\n" );
|
printf ( "...configuration failed: %m\n" );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load boot file from the device */
|
/* Load boot file from the device */
|
||||||
if ( ! autoload ( &dev, &image, &image_context ) ) {
|
if ( ! autoload ( &dev, &image, &image_context ) ) {
|
||||||
/* Load (e.g. TFTP) failed */
|
/* Load (e.g. TFTP) failed */
|
||||||
printf ( "...load failed\n" );
|
printf ( "...load failed: %m\n" );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,7 +236,7 @@ int main ( void ) {
|
|||||||
/* Boot the image */
|
/* Boot the image */
|
||||||
if ( ! image->boot ( image_context ) ) {
|
if ( ! image->boot ( image_context ) ) {
|
||||||
/* Boot failed */
|
/* Boot failed */
|
||||||
printf ( "...boot failed\n" );
|
printf ( "...boot failed: %m\n" );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user