|
@@ -1,4 +1,5 @@
|
1
|
1
|
#include <stdint.h>
|
|
2
|
+#include <string.h>
|
2
|
3
|
#include <byteswap.h>
|
3
|
4
|
#include <vsprintf.h>
|
4
|
5
|
#include <gpxe/netdevice.h>
|
|
@@ -30,7 +31,8 @@ int test_iscsiboot ( const char *initiator_iqn,
|
30
|
31
|
|
31
|
32
|
printf ( "Initialising %s\n", target_iqn );
|
32
|
33
|
if ( ( rc = init_iscsidev ( &test_iscsidev ) ) != 0 ) {
|
33
|
|
- printf ( "Could not reach %s\n", target_iqn );
|
|
34
|
+ printf ( "Could not reach %s: %s\n", target_iqn,
|
|
35
|
+ strerror ( errno ) );
|
34
|
36
|
return rc;
|
35
|
37
|
}
|
36
|
38
|
ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
|