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
parent
3da961bb11
commit
226c285ec4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue