Commit 7a4b73d8 authored by Michal Wasiak's avatar Michal Wasiak Committed by Adam Wujek

userspace/tools: add a support of print of struct timeval to wrs_dump_shmem

Signed-off-by: 's avatarMichal Wasiak <michal.wasiak@gmail.com>
parent e50645ce
......@@ -212,6 +212,13 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
}
break;
case dump_type_timeval:
{
struct timeval *tv = (struct timeval*) p;
printf("%ld.%06ld\n", tv->tv_sec, tv->tv_usec);
break;
}
case dump_type_time:
printf("%s\n",timeToString(t,buf));
break;
......
......@@ -46,6 +46,7 @@ enum dump_type {
dump_type_float,
dump_type_pointer,
dump_type_yes_no,
dump_type_timeval,
/* and strange ones, from IEEE */
dump_type_UInteger64,
dump_type_Integer64,
......
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