public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: passt-dev@passt.top, Stefano Brivio <sbrivio@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Subject: [PATCH v2 0/4] Fix several small errors in log time handling
Date: Tue,  6 Aug 2024 16:18:35 +1000	[thread overview]
Message-ID: <20240806061839.1950144-1-david@gibson.dropbear.id.au> (raw)

While working on the deduplication of clock_gettime() in the logging
code, I noticed a few other minor issues.

Changes since v1:
 * Dropped merged change making logfile_write() static
 * Handle errors from clock_gettime()
 * Added fixes for some additional problems I noticed

David Gibson (4):
  util: Some corrections for timespec_diff_us
  log: Correct formatting of timestamps
  log: Handle errors from clock_gettime()
  log: Avoid duplicate calls to logtime()

 log.c  | 70 ++++++++++++++++++++++++++++++++++++++++------------------
 util.c |  4 ++--
 util.h |  2 +-
 3 files changed, 52 insertions(+), 24 deletions(-)

-- 
2.45.2


             reply	other threads:[~2024-08-06  6:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06  6:18 David Gibson [this message]
2024-08-06  6:18 ` [PATCH v2 1/4] util: Some corrections for timespec_diff_us David Gibson
2024-08-06  6:18 ` [PATCH v2 2/4] log: Correct formatting of timestamps David Gibson
2024-08-06 19:08   ` Stefano Brivio
2024-08-07  1:06     ` David Gibson
2024-08-07  8:17       ` Stefano Brivio
2024-08-06  6:18 ` [PATCH v2 3/4] log: Handle errors from clock_gettime() David Gibson
2024-08-06  6:18 ` [PATCH v2 4/4] log: Avoid duplicate calls to logtime() David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240806061839.1950144-1-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).