Bläddra i källkod

Print informative error message when boot fails.

tags/v0.9.3
Michael Brown 18 år sedan
förälder
incheckning
3460860bef
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/tests/dhcptest.c

+ 1
- 1
src/tests/dhcptest.c Visa fil

251
 
251
 
252
 	/* Test boot */
252
 	/* Test boot */
253
 	if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) {
253
 	if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) {
254
-		printf ( "Boot failed\n" );
254
+		printf ( "Boot failed: %s\n", strerror ( rc ) );
255
 		goto out;
255
 		goto out;
256
 	}
256
 	}
257
 	
257
 	

Laddar…
Avbryt
Spara