Commit c268940a authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

tools: fix printing 64bit values in wrpc-dump

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent a046779d
......@@ -38,9 +38,9 @@ static long long wrpc_get_64(void *p)
if (endian_flag == DUMP_ENDIAN_FLAG) {
return *p64;
}
result = __bswap_32((uint32_t)(*p64 >> 32));
result = __bswap_32((uint32_t)*p64);
result <<= 32;
result |= __bswap_32((uint32_t)*p64);
result |= __bswap_32((uint32_t)(*p64 >> 32));
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment