X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-trace.c;h=f5f9c19e6a636f3225530a7cebe4d6ad6cc57f64;hb=95ee37b3cdb38efc4e77d072d00c7fc46b203d24;hp=5404a5aff5bccf24a900c0a38c362bf088868933;hpb=65e9c2b1fe1ea900383307ba7413ca379acbce4d;p=src%2Fapp-framework-binder.git diff --git a/src/afb-trace.c b/src/afb-trace.c index 5404a5af..f5f9c19e 100644 --- a/src/afb-trace.c +++ b/src/afb-trace.c @@ -168,7 +168,7 @@ static struct json_object *timestamp(const struct afb_hookid *hookid) { char ts[50]; - snprintf(ts, sizeof ts, "%llu.%06lu", (long long unsigned)hookid->time.tv_sec, (long unsigned)(hookid->time.tv_nsec / 1000)); + snprintf(ts, sizeof ts, "%llu.%09llu", (long long unsigned)hookid->time.tv_sec, (long long unsigned)hookid->time.tv_nsec); return json_object_new_string(ts); }