test-tool: Move a logging statement into write_residuals_test()

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2021-02-08 17:55:19 -08:00
parent a21065cf71
commit c7a9f51d23
4 changed files with 4 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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: