From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id AC75A5A031A for ; Tue, 06 Aug 2024 08:18:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1722925121; bh=m8HNrdiCseD+snKs9Z8gTwqBLlwNV1aalwTtVJATw5E=; h=From:To:Cc:Subject:Date:From; b=U+swu+HUrl7FFQjDkryg8JQZj6IcvFDy76qdOTqd0rOB7sz/YP6Yo/UmDUhqLrvOj 93aPENHe1OlmUY2I4JXfD642JRS89ZUZYfePqL+K3sMinBnGBHjXRDGWFdwG3O45WH C2/XCMJR8YSIwz0sfwayYlo/W4tGmpTW0sNTDqnssDI1MMdenf+NCXgt8f6bqAD2T/ Q+d+GXtJZy6AaamkIOjRvI74ObpC/BleIMew564iRXPdfAZrWq+lDVUAiKgTART7Aa s/Xir1NjGShvPN2ZcEAP2BlYJvS+x6WubAGU6Gc6Z/n4UedgrVvm/s1st2FMeO4whZ geuYIYSGcj0+g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WdNRP1Xq5z4wnx; Tue, 6 Aug 2024 16:18:41 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/4] Fix several small errors in log time handling Date: Tue, 6 Aug 2024 16:18:35 +1000 Message-ID: <20240806061839.1950144-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID-Hash: QKCFFIBHXR5BZ7ID5SGIY5KKEZ4MQH6T X-Message-ID-Hash: QKCFFIBHXR5BZ7ID5SGIY5KKEZ4MQH6T X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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