test_compareandwrite_simple: Make error messages more verbose
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
f6c4a82a22
commit
bb8d01e093
@@ -104,7 +104,8 @@ test_compareandwrite_simple(void)
|
|||||||
for (j = 0; j < i * block_size; j++) {
|
for (j = 0; j < i * block_size; j++) {
|
||||||
if (buf[j] != 'B') {
|
if (buf[j] != 'B') {
|
||||||
logging(LOG_VERBOSE, "[FAILED] Data did not "
|
logging(LOG_VERBOSE, "[FAILED] Data did not "
|
||||||
"read back as 'B'");
|
"read back as 'B' (buf[%d] = %#02x)",
|
||||||
|
j, buf[j]);
|
||||||
CU_FAIL("Block was not written correctly");
|
CU_FAIL("Block was not written correctly");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -156,7 +157,8 @@ test_compareandwrite_simple(void)
|
|||||||
for (j = 0; j < i * block_size; j++) {
|
for (j = 0; j < i * block_size; j++) {
|
||||||
if (buf[j] != 'B') {
|
if (buf[j] != 'B') {
|
||||||
logging(LOG_VERBOSE, "[FAILED] Data did not "
|
logging(LOG_VERBOSE, "[FAILED] Data did not "
|
||||||
"read back as 'B'");
|
"read back as 'B' (buf[%d] = %#02x)",
|
||||||
|
j, buf[j]);
|
||||||
CU_FAIL("Block was not written correctly");
|
CU_FAIL("Block was not written correctly");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user