From 226c285ec42241d2133877346563353f9849274f Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Wed, 5 Aug 2020 16:02:08 -0700 Subject: [PATCH] phc_ctl: display all capability information The capability command for phc_ctl does not display the number of pins or the cross timestamping support. Add this as output so that the user can see the complete device capabilities. Signed-off-by: Jacob Keller --- phc_ctl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phc_ctl.c b/phc_ctl.c index 9191342..00d7a1c 100644 --- a/phc_ctl.c +++ b/phc_ctl.c @@ -320,12 +320,16 @@ static int do_caps(clockid_t clkid, int cmdc, char *cmdv[]) " %d programable alarms\n" " %d external time stamp channels\n" " %d programmable periodic signals\n" - " %s pulse per second support", + " %d configurable input/output pins\n" + " %s pulse per second support\n" + " %s cross timestamping support\n", caps.max_adj, caps.n_alarm, caps.n_ext_ts, caps.n_per_out, - caps.pps ? "has" : "doesn't have"); + caps.n_pins, + caps.pps ? "has" : "doesn't have", + caps.cross_timestamping ? "has" : "doesn't have"); return 0; }