test_report_supported_opcodes_one_command: Make reporting more detailed
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
2d412530c1
commit
0bddefca95
@@ -101,6 +101,19 @@ test_report_supported_opcodes_one_command(void)
|
||||
} else {
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
if (ret != 0 && ret != -2) {
|
||||
if (rsoc->descriptors[i].servactv)
|
||||
logging(LOG_NORMAL, "[FAILED] Opcode"
|
||||
" %#02x/%#02x: got unexpected response"
|
||||
" for reporting option 001b",
|
||||
rsoc->descriptors[i].opcode,
|
||||
rsoc->descriptors[i].sa);
|
||||
else
|
||||
logging(LOG_NORMAL, "[FAILED] Opcode %#02x: got"
|
||||
" unexpected response for reporting"
|
||||
" option 001b",
|
||||
rsoc->descriptors[i].opcode);
|
||||
}
|
||||
|
||||
if (rsoc->descriptors[i].servactv) {
|
||||
logging(LOG_VERBOSE, "This opcode has service actions. "
|
||||
@@ -131,6 +144,19 @@ test_report_supported_opcodes_one_command(void)
|
||||
} else {
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
if (ret != 0 && ret != -2) {
|
||||
if (rsoc->descriptors[i].servactv)
|
||||
logging(LOG_NORMAL, "[FAILED] Opcode"
|
||||
" %#02x/%#02x: got unexpected response"
|
||||
" for reporting option 002b",
|
||||
rsoc->descriptors[i].opcode,
|
||||
rsoc->descriptors[i].sa);
|
||||
else
|
||||
logging(LOG_NORMAL, "[FAILED] Opcode %#02x: got"
|
||||
" unexpected response for reporting"
|
||||
" option 002b",
|
||||
rsoc->descriptors[i].opcode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user