Print informative error message when boot fails.
This commit is contained in:
parent
230f16538f
commit
3460860bef
|
@ -251,7 +251,7 @@ int test_dhcp ( struct net_device *netdev ) {
|
||||||
|
|
||||||
/* Test boot */
|
/* Test boot */
|
||||||
if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) {
|
if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) {
|
||||||
printf ( "Boot failed\n" );
|
printf ( "Boot failed: %s\n", strerror ( rc ) );
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue