From f97cd4f816ff0e30d2a95e04b36bbb14b9edef8f Mon Sep 17 00:00:00 2001 From: Jon Grimm Date: Mon, 29 Oct 2012 18:07:15 -0500 Subject: [PATCH] Test: 0430_report_all_supported_ops: BUG: Need to set return_timeouts parm again after I know full_size. --- test-tool/0430_report_all_supported_ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test-tool/0430_report_all_supported_ops.c b/test-tool/0430_report_all_supported_ops.c index 34cbbc7..2ba1340 100644 --- a/test-tool/0430_report_all_supported_ops.c +++ b/test-tool/0430_report_all_supported_ops.c @@ -93,7 +93,7 @@ int T0430_report_all_supported_ops(const char *initiator, const char *url, int d rsoc = scsi_datain_unmarshall(task); if (rsoc == NULL) { printf("[FAILED]\n"); - printf("failed to unmarshall inquiry datain blob\n"); + printf("failed to unmarshall REPORT SUPPORTED OPCODES datain blob\n"); scsi_free_scsi_task(task); ret = -1; goto finished; @@ -149,7 +149,7 @@ test2: scsi_free_scsi_task(task); /* we need more data for the full list */ - if ((task = iscsi_report_supported_opcodes_sync(iscsi, lun, 0, full_size)) == NULL) { + if ((task = iscsi_report_supported_opcodes_sync(iscsi, lun, 1, full_size)) == NULL) { printf("[FAILED]\n"); printf("REPORT SUPPORTED OPCODES failed : %s\n", iscsi_get_error(iscsi)); ret = -1; @@ -159,7 +159,7 @@ test2: rsoc = scsi_datain_unmarshall(task); if (rsoc == NULL) { printf("[FAILED]\n"); - printf("failed to unmarshall inquiry datain blob\n"); + printf("failed to unmarshall REPORT SUPPORTED OPCODES datain blob\n"); scsi_free_scsi_task(task); ret = -1; goto finished; @@ -171,7 +171,7 @@ test2: + sizeof (struct scsi_op_timeout_descriptor); desc = &rsoc->descriptors[0]; for (i=0; i < rsoc->num_descriptors; i++) { - printf("op:%x\tsa:%x\tcdb_length:%d\ttimout info: length:%d\tcommand specific:%x\tnominal processing%d\trecommended%d\n", + printf("op:%x\tsa:%x\tcdb_length:%d\ttimeout info: length:%d\tcommand specific:%x\tnominal processing%d\trecommended%d\n", desc->op_code, desc->service_action, desc->cdb_length,