Add new adjust phase support flag to the phc control tool. Signed-off-by: Erez Geva <erezge...@gmail.com> --- phc_ctl.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/phc_ctl.c b/phc_ctl.c index e975dd8..1ea7020 100644 --- a/phc_ctl.c +++ b/phc_ctl.c @@ -302,14 +302,21 @@ static int do_caps(clockid_t clkid, int cmdc, char *cmdv[]) " %d programmable periodic signals\n" " %d configurable input/output pins\n" " %s pulse per second support\n" - " %s cross timestamping support\n", + " %s cross timestamping support\n" + " %s adjust phase support\n", caps.max_adj, caps.n_alarm, caps.n_ext_ts, caps.n_per_out, caps.n_pins, caps.pps ? "has" : "doesn't have", - caps.cross_timestamping ? "has" : "doesn't have"); + caps.cross_timestamping ? "has" : "doesn't have", + #ifdef PTP_CLOCK_GETCAPS2 + caps.adjust_phase ? "has" : "doesn't have" + #else + "no information regard" + #endif + ); return 0; } -- 2.30.2 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel