Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Richard Cochran <richardcochran@gmail.com>
To: Alex Maftei <alex.maftei@amd.com>
Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET
Date: Thu, 15 Jun 2023 12:30:40 -0700	[thread overview]
Message-ID: <ZItm4OCrMjm56RH0@hoboy.vegasvil.org> (raw)
In-Reply-To: <20230615083404.57112-1-alex.maftei@amd.com>

On Thu, Jun 15, 2023 at 09:34:04AM +0100, Alex Maftei wrote:
> Previously, timestamps were printed using "%lld.%u" which is incorrect
> for nanosecond values lower than 100,000,000 as they're fractional
> digits, therefore leading zeros are meaningful.
> 
> This patch changes the format strings to "%lld.%09u" in order to add
> leading zeros to the nanosecond value.
> 
> Fixes: 568ebc5985f5 ("ptp: add the PTP_SYS_OFFSET ioctl to the testptp program")
> Fixes: 4ec54f95736f ("ptp: Fix compiler warnings in the testptp utility")
> Fixes: 6ab0e475f1f3 ("Documentation: fix misc. warnings")
> Signed-off-by: Alex Maftei <alex.maftei@amd.com>

Acked-by: Richard Cochran <richardcochran@gmail.com>

  parent reply	other threads:[~2023-06-15 19:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15  8:34 [PATCH] selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET Alex Maftei
2023-06-15  9:43 ` Pavan Chebbi
2023-06-15 19:50   ` Jakub Kicinski
2023-06-15 19:30 ` Richard Cochran [this message]
2023-06-15 22:10 ` patchwork-bot+netdevbpf

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=ZItm4OCrMjm56RH0@hoboy.vegasvil.org \
    --to=richardcochran@gmail.com \
    --cc=alex.maftei@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shuah@kernel.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox