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++) {
|
||||
if (buf[j] != 'B') {
|
||||
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");
|
||||
return;
|
||||
}
|
||||
@@ -156,7 +157,8 @@ test_compareandwrite_simple(void)
|
||||
for (j = 0; j < i * block_size; j++) {
|
||||
if (buf[j] != 'B') {
|
||||
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");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user