diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-10-25 00:22:19 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-24 22:43:27 -0700 |
commit | 00f36fc5aedf15be19d1a458dabaa6714a21d8d8 (patch) | |
tree | d8079f5f396618a0963dba491a0b42c350fedabd /Tests | |
parent | e71e9de61f8a2a78be28314dfb4c3997661a2e1b (diff) | |
download | serenity-00f36fc5aedf15be19d1a458dabaa6714a21d8d8.zip |
Tests: Print full 32-byte range of values in TestScanf
We are trying to show 8 u32 values, each of which needs at most 8
hexadecimal characters to be shown entirely.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibC/TestScanf.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/LibC/TestScanf.cpp b/Tests/LibC/TestScanf.cpp index 85fc91deec..7993f4f1ec 100644 --- a/Tests/LibC/TestScanf.cpp +++ b/Tests/LibC/TestScanf.cpp @@ -187,10 +187,11 @@ static bool check_value_conformance(const TestSuite& test) if (arg_value != value) { auto arg_ptr = (const u32*)arg_value.data(); auto value_ptr = (const u32*)value.data(); - printf(" value %zu FAIL, expected %04x%04x%04x%04x%04x%04x%04x%04x but got %04x%04x%04x%04x%04x%04x%04x%04x\n", - i, + printf(" value %zu FAIL,\n", i); + printf(" expected %08x%08x%08x%08x%08x%08x%08x%08x\n", value_ptr[0], value_ptr[1], value_ptr[2], value_ptr[3], - value_ptr[4], value_ptr[5], value_ptr[6], value_ptr[7], + value_ptr[4], value_ptr[5], value_ptr[6], value_ptr[7]); + printf(" but got %08x%08x%08x%08x%08x%08x%08x%08x\n", arg_ptr[0], arg_ptr[1], arg_ptr[2], arg_ptr[3], arg_ptr[4], arg_ptr[5], arg_ptr[6], arg_ptr[7]); fail = true; |