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 <jacob.e.keller@intel.com>
master
Jacob Keller 2020-08-05 16:02:08 -07:00 committed by Richard Cochran
parent 3da961bb11
commit 226c285ec4
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}