From: Richard Cochran <richardcochran@gmail.com>
To: Christian Riesch <christian.riesch@omicron.at>
Cc: netdev@vger.kernel.org, Dong Zhu <bluezhudong@gmail.com>
Subject: Re: [PATCH net-next 2/2] ptp: Fix compiler warnings in the testptp utility
Date: Tue, 25 Mar 2014 12:45:23 +0100 [thread overview]
Message-ID: <20140325114523.GB14836@netboy> (raw)
In-Reply-To: <a2330f7d-0abf-4ee0-9288-1e881b2b5368@mary.at.omicron.at>
On Tue, Mar 25, 2014 at 12:24:06PM +0100, Christian Riesch wrote:
> Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
> Cc: Dong Zhu <bluezhudong@gmail.com>
> ---
> Documentation/ptp/testptp.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/ptp/testptp.c b/Documentation/ptp/testptp.c
> index 13bddd5..14bf19e 100644
> --- a/Documentation/ptp/testptp.c
> +++ b/Documentation/ptp/testptp.c
> @@ -496,14 +496,14 @@ int main(int argc, char *argv[])
> interval = t2 - t1;
> offset = (t2 + t1) / 2 - tp;
>
> - printf("system time: %ld.%ld\n",
> + printf("system time: %lld.%u\n",
> (pct+2*i)->sec, (pct+2*i)->nsec);
> - printf("phc time: %ld.%ld\n",
> + printf("phc time: %lld.%u\n",
> (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
> - printf("system time: %ld.%ld\n",
> + printf("system time: %lld.%u\n",
> (pct+2*i+2)->sec, (pct+2*i+2)->nsec);
> - printf("system/phc clock time offset is %ld ns\n"
> - "system clock time delay is %ld ns\n",
Use PRId64 instead?
Thanks,
Richard
> + printf("system/phc clock time offset is %lld ns\n"
> + "system clock time delay is %lld ns\n",
> offset, interval);
> }
>
> --
> 1.7.9.5
>
next prev parent reply other threads:[~2014-03-25 11:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1395746646-28299-1-git-send-email-christian.riesch@omicron.at>
2014-03-25 11:24 ` [PATCH net-next 2/2] ptp: Fix compiler warnings in the testptp utility Christian Riesch
2014-03-25 11:45 ` Richard Cochran [this message]
2014-04-08 21:43 ` Keller, Jacob E
2014-04-09 6:15 ` Christian Riesch
2014-04-09 6:23 ` Christian Riesch
2014-04-09 6:40 ` Christian Riesch
2014-04-09 17:33 ` Keller, Jacob E
2014-03-26 20:44 ` David Miller
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=20140325114523.GB14836@netboy \
--to=richardcochran@gmail.com \
--cc=bluezhudong@gmail.com \
--cc=christian.riesch@omicron.at \
--cc=netdev@vger.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;
as well as URLs for NNTP newsgroup(s).