Skip to content
Snippets Groups Projects
Commit 53570700 authored by Florian Fischer's avatar Florian Fischer
Browse files

[EchoClient] output buffers if they do not match

parent 3e30fe98
No related branches found
No related tags found
1 merge request!154[EchoClient] output buffers if they do not match
...@@ -177,7 +177,19 @@ static void clientFunc(uint64_t client_id, Semaphore& readySem, Semaphore& start ...@@ -177,7 +177,19 @@ static void clientFunc(uint64_t client_id, Semaphore& readySem, Semaphore& start
} }
if (memcmp(outBuf, inBuf, size) != 0) { if (memcmp(outBuf, inBuf, size) != 0) {
DIE_MSG("got unexpected echo from server"); std::cerr << "got unexpected echo from server" << std::endl;
std::cerr << "expected: " << std::hex;
for (unsigned i = 0; i < size; ++i) {
std::cerr << (unsigned)outBuf[i] << " ";
}
std::cerr << std::endl;
std::cerr << "received: " << std::hex;
for (unsigned i = 0; i < size; ++i) {
std::cerr << (unsigned)inBuf[i] << " ";
}
std::cerr << std::endl;
DIE;
} }
i++; i++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment