diff options
| author | Michael Brown | 2006-08-16 01:56:18 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-08-16 01:56:18 +0200 |
| commit | 0743dc5b0dc1db1c346b0fc09be10a95d0cab5c0 (patch) | |
| tree | 89c700dacd2aa5aadbec402c48a41ccdbf24342f /src/net | |
| parent | Take out unused cleanup() function so that we can remove the link (diff) | |
| download | ipxe-0743dc5b0dc1db1c346b0fc09be10a95d0cab5c0.tar.gz ipxe-0743dc5b0dc1db1c346b0fc09be10a95d0cab5c0.tar.xz ipxe-0743dc5b0dc1db1c346b0fc09be10a95d0cab5c0.zip | |
Added some minimal debugging for transmitted PDUs.
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/tcp/iscsi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index e970fb30d..7c0e9150f 100644 --- a/src/net/tcp/iscsi.c +++ b/src/net/tcp/iscsi.c @@ -75,6 +75,11 @@ static void iscsi_start_command ( struct iscsi_session *iscsi ) { command->cmdsn = htonl ( iscsi->cmdsn ); command->expstatsn = htonl ( iscsi->statsn + 1 ); memcpy ( &command->cdb, &iscsi->command->cdb, sizeof ( command->cdb )); + DBG ( "iSCSI %p start " SCSI_CDB_FORMAT " %s %#x\n", + iscsi, SCSI_CDB_DATA ( command->cdb ), + ( iscsi->command->data_in ? "in" : "out" ), + ( iscsi->command->data_in ? + iscsi->command->data_in_len : iscsi->command->data_out_len ) ); } /** @@ -200,6 +205,8 @@ static void iscsi_start_data_out ( struct iscsi_session *iscsi, data_out->expstatsn = htonl ( iscsi->statsn + 1 ); data_out->datasn = htonl ( datasn ); data_out->offset = htonl ( iscsi->transfer_offset + offset ); + DBG ( "iSCSI %p start data out DataSN %#x len %#lx\n", + iscsi, datasn, len ); } /** |
