Skip to content
Snippets Groups Projects
Commit b6819798 authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/tools: add UInteger64 and Integer64 to wrs_dump_shmem


Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent cadc95e0
Branches
Tags
No related merge requests found
......@@ -52,6 +52,8 @@ enum dump_type {
dump_type_double,
dump_type_pointer,
/* and strange ones, from IEEE */
dump_type_UInteger64,
dump_type_Integer64,
dump_type_UInteger32,
dump_type_Integer32,
dump_type_UInteger16,
......@@ -101,6 +103,12 @@ void dump_one_field(void *addr, struct dump_info *info)
printf("%02x%c", ((unsigned char *)p)[i],
i == info->size - 1 ? '\n' : ':');
break;
case dump_type_UInteger64:
printf("%lld\n", *(unsigned long long *)p);
break;
case dump_type_Integer64:
printf("%lld\n", *(long long *)p);
break;
case dump_type_uint32_t:
printf("0x%08lx\n", (long)*(uint32_t *)p);
break;
......
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