test-tool: Move a logging statement into write_residuals_test()
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -90,7 +90,6 @@ test_write10_residuals(void)
|
||||
iscsi_set_noautoreconnect(sd->iscsi_ctx, 1);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(write10_residuals); i++) {
|
||||
logging(LOG_VERBOSE, "\n%s", write10_residuals[i].description);
|
||||
write_residuals_test(&write10_residuals[i]);
|
||||
|
||||
if (!command_is_implemented) {
|
||||
|
||||
@@ -90,7 +90,6 @@ test_write12_residuals(void)
|
||||
iscsi_set_noautoreconnect(sd->iscsi_ctx, 1);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(write12_residuals); i++) {
|
||||
logging(LOG_VERBOSE, "\n%s", write12_residuals[i].description);
|
||||
write_residuals_test(&write12_residuals[i]);
|
||||
|
||||
if (!command_is_implemented) {
|
||||
|
||||
@@ -90,7 +90,6 @@ test_write16_residuals(void)
|
||||
iscsi_set_noautoreconnect(sd->iscsi_ctx, 1);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(write16_residuals); i++) {
|
||||
logging(LOG_VERBOSE, "\n%s", write16_residuals[i].description);
|
||||
write_residuals_test(&write16_residuals[i]);
|
||||
|
||||
if (!command_is_implemented) {
|
||||
|
||||
@@ -44,7 +44,10 @@ write_residuals_test(const struct residuals_test_data *tdata)
|
||||
unsigned int i;
|
||||
unsigned int transfer_length;
|
||||
unsigned int scsi_opcode_write = SCSI_OPCODE_WRITE10;
|
||||
const char *residual = tdata->residual_type == SCSI_RESIDUAL_OVERFLOW ? "overflow" : "underflow";
|
||||
const char *residual = tdata->residual_type == SCSI_RESIDUAL_OVERFLOW ?
|
||||
"overflow" : "underflow";
|
||||
|
||||
logging(LOG_VERBOSE, "\n%s", tdata->description);
|
||||
|
||||
switch (tdata->cdb_size) {
|
||||
case 10:
|
||||
|
||||
Reference in New Issue
Block a user