From 3460860befbef4f091f06a2f71de36e9cfb3d13a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 11 Jan 2007 15:26:17 +0000 Subject: [PATCH] Print informative error message when boot fails. --- src/tests/dhcptest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/dhcptest.c b/src/tests/dhcptest.c index 5cca514b..5d6f52dc 100644 --- a/src/tests/dhcptest.c +++ b/src/tests/dhcptest.c @@ -251,7 +251,7 @@ int test_dhcp ( struct net_device *netdev ) { /* Test boot */ if ( ( rc = test_dhcp_boot ( netdev, filename ) ) != 0 ) { - printf ( "Boot failed\n" ); + printf ( "Boot failed: %s\n", strerror ( rc ) ); goto out; }