Commit b9de5693 authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: arch-bare-*: wrong time reporting

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a85a1a92
...@@ -16,7 +16,7 @@ static int bare_time_get(TimeInternal *t) ...@@ -16,7 +16,7 @@ static int bare_time_get(TimeInternal *t)
t->seconds = tv.tv_sec; t->seconds = tv.tv_sec;
t->nanoseconds = tv.tv_usec * 1000; t->nanoseconds = tv.tv_usec * 1000;
if (pp_verbose_time) if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec); pp_printf("%s: %9li.%06li\n", __func__, tv.tv_sec, tv.tv_usec);
return 0; return 0;
} }
...@@ -32,7 +32,7 @@ static int bare_time_set(TimeInternal *t) ...@@ -32,7 +32,7 @@ static int bare_time_set(TimeInternal *t)
sys_exit(1); sys_exit(1);
} }
if (pp_verbose_time) if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec); pp_printf("%s: %9li.%06li\n", __func__, tv.tv_sec, tv.tv_usec);
return 0; return 0;
} }
......
...@@ -16,7 +16,7 @@ static int bare_time_get(TimeInternal *t) ...@@ -16,7 +16,7 @@ static int bare_time_get(TimeInternal *t)
t->seconds = tv.tv_sec; t->seconds = tv.tv_sec;
t->nanoseconds = tv.tv_usec * 1000; t->nanoseconds = tv.tv_usec * 1000;
if (pp_verbose_time) if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec); pp_printf("%s: %9li.%06li\n", __func__, tv.tv_sec, tv.tv_usec);
return 0; return 0;
} }
...@@ -32,7 +32,7 @@ static int bare_time_set(TimeInternal *t) ...@@ -32,7 +32,7 @@ static int bare_time_set(TimeInternal *t)
sys_exit(1); sys_exit(1);
} }
if (pp_verbose_time) if (pp_verbose_time)
pp_printf("%s: %9li.%09li\n", __func__, tv.tv_sec, tv.tv_nsec); pp_printf("%s: %9li.%06li\n", __func__, tv.tv_sec, tv.tv_usec);
return 0; return 0;
} }
......
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