From aed7faf4db4e43418ce59a722e7c7c933641d11e Mon Sep 17 00:00:00 2001 From: Folkert van Heusden Date: Fri, 18 Oct 2024 08:05:53 +0200 Subject: [PATCH] For failing writes, show what is in the sector instead --- test-tool/test_write_residuals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-tool/test_write_residuals.c b/test-tool/test_write_residuals.c index 8865b23..8672aba 100644 --- a/test-tool/test_write_residuals.c +++ b/test-tool/test_write_residuals.c @@ -229,7 +229,7 @@ write_residuals_test(const struct residuals_test_data *tdata, for (i = 0; i < expected_write_size; i++) { if (scratch[i] != 'a') { logging(LOG_NORMAL, "Blocks were overwritten " - "and no longer contain 'a'"); + "and no longer contain 'a': %c", scratch[i]); CU_FAIL("Blocks were incorrectly overwritten"); break; } @@ -250,7 +250,7 @@ write_residuals_test(const struct residuals_test_data *tdata, for (i = expected_write_size; i < max_len; i++) { if (scratch[i] != 'a') { logging(LOG_NORMAL, "Data was overwritten " - "and no longer contain 'a'"); + "and no longer contain 'a': %c", scratch[i]); CU_FAIL("Data was incorrectly overwritten"); break; }