You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/08/18 16:32:34 UTC
[plc4x] branch s7event updated: - Fixed the output of the diff-check
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch s7event
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/s7event by this push:
new 39a999c - Fixed the output of the diff-check
39a999c is described below
commit 39a999cdf64ce97be502fdec750985dd0dfed9f8
Author: cdutz <ch...@c-ware.de>
AuthorDate: Wed Aug 18 18:32:25 2021 +0200
- Fixed the output of the diff-check
---
plc4c/drivers/s7/test/s7_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4c/drivers/s7/test/s7_test.c b/plc4c/drivers/s7/test/s7_test.c
index 4128863..d6102ef 100644
--- a/plc4c/drivers/s7/test/s7_test.c
+++ b/plc4c/drivers/s7/test/s7_test.c
@@ -32,7 +32,7 @@ void internal_assert_arrays_equal(uint8_t* expected_array,
// Needed for debugging on remote machines: Output the entire arrays content.
if(expected_value != actual_value) {
for(int j = 0; j < num_bytes; j++) {
- printf("E=%02X %s A=%02X", expected_value, (*(expected_array + j) != *(write_buffer->data + j) ? "!=" : "=="), actual_value);
+ printf("E=%02X %s A=%02X | ", *(expected_array + j), (*(expected_array + j) != *(write_buffer->data + j) ? "!=" : "=="), *(write_buffer->data + j));
}
}
TEST_ASSERT_EQUAL_UINT8_MESSAGE(expected_value, actual_value, "Byte arrays differ");