Thread (8 messages) flat view 8 messages, 4 authors, 2013-09-23

Re: [PATCH] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program clock

From: Richard Cochran <richardcochran@gmail.com>
Date: 2013-09-15 08:48:29
Also in: lkml

On Sat, Sep 14, 2013 at 11:39:52PM +0800, Dong Zhu wrote:
On Sat, Sep 14, 2013 at 04:31:46PM +0200, Richard Cochran wrote:
quoted
On Sat, Sep 14, 2013 at 04:03:06PM +0800, Dong Zhu wrote:
quoted
This patch add a method into testptp.c to measure the time offset
between phc and system clock through the ioctl PTP_SYS_OFFSET.
This is a nice addition to the testptp program. I do have a few
comments, below.
Thanks very much for your comments, I have modified the patch as below,
Cuold you have a look at it again ? Any comments would be appreciated.
It looks better, but could you please tweak a few more things?
Subject: Re: [PATCH] ptp: add the PTP_SYS_OFFSET ioctl to the testptp program clock
The subject line has the word "clock" at the end by mistake.
 
...
quoted hunk ↗ jump to hunk
diff --git a/Documentation/ptp/testptp.c b/Documentation/ptp/testptp.c
index f59ded0..8acdc70 100644
--- a/Documentation/ptp/testptp.c
+++ b/Documentation/ptp/testptp.c
@@ -112,6 +112,8 @@ static void usage(char *progname)
 		" -f val     adjust the ptp clock frequency by 'val' ppb\n"
 		" -g         get the ptp clock time\n"
 		" -h         prints this message\n"
+		" -k val     measure the time offset between phc and system clock "
+		"for 'val' times (Maximum 25)\n"
This line is getting a bit too long for the terminal. Please line up
the text, like this:

		" -k val     measure the time offset between phc and system clock\n"
		"            for 'val' times (Maximum 25)\n"

Also, when you resubmit the patch, add "net-next" and a patch version,
like this: [PATCH net-next v3].

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help