This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cec-ctl: show timestamps in microsecond precision Author: Hans Verkuil <[email protected]> Date: Thu Mar 10 13:05:26 2022 +0100 Sometimes timestamps were shown in microsecond precision and sometimes in millisecond precision. Change this to always show microsecond precision, since that's needed when analyzing CEC pin logs. Signed-off-by: Hans Verkuil <[email protected]> utils/cec-ctl/cec-ctl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=b429fa7f24502889ea39b87863cb5309de92f8b7 diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp index e49cb231e22b..30f77a156cca 100644 --- a/utils/cec-ctl/cec-ctl.cpp +++ b/utils/cec-ctl/cec-ctl.cpp @@ -380,7 +380,7 @@ std::string ts2s(__u64 ts) time_t t; if (!options[OptWallClock]) { - sprintf(buf, "%llu.%03llus", ts / 1000000000, (ts % 1000000000) / 1000000); + sprintf(buf, "%llu.%06llus", ts / 1000000000, (ts % 1000000000) / 1000); return buf; } diff = ts - start_monotonic.tv_sec * 1000000000ULL - start_monotonic.tv_nsec; @@ -395,10 +395,10 @@ std::string ts2s(__u64 ts) last_secs = tm.tm_min * 60 + tm.tm_sec; last_t = t; valid_until_t = t + 3600 - last_secs; - strftime(buf, sizeof(buf), "%a %b %e %T.000", &tm); + strftime(buf, sizeof(buf), "%a %b %e %T.000000", &tm); } secs = last_secs + t - last_t; - sprintf(buf + 14, "%02u:%02u.%03lu", secs / 60, secs % 60, res.tv_usec / 1000); + sprintf(buf + 14, "%02u:%02u.%06lu", secs / 60, secs % 60, res.tv_usec); return buf; } _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
