pmc: show the flags from the default data set.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-12-04 16:03:33 +01:00
parent c129d0ec95
commit 480f9e7d7a
1 changed files with 4 additions and 0 deletions

4
pmc.c
View File

@ -204,6 +204,8 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
case DEFAULT_DATA_SET: case DEFAULT_DATA_SET:
dds = (struct defaultDS *) mgt->data; dds = (struct defaultDS *) mgt->data;
fprintf(fp, "DEFAULT_DATA_SET " fprintf(fp, "DEFAULT_DATA_SET "
IFMT "twoStepFlag %d"
IFMT "slaveOnly %d"
IFMT "numberPorts %hu" IFMT "numberPorts %hu"
IFMT "priority1 %hhu" IFMT "priority1 %hhu"
IFMT "clockClass %hhu" IFMT "clockClass %hhu"
@ -212,6 +214,8 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
IFMT "priority2 %hhu" IFMT "priority2 %hhu"
IFMT "clockIdentity %s" IFMT "clockIdentity %s"
IFMT "domainNumber %hhu", IFMT "domainNumber %hhu",
dds->flags & DDS_TWO_STEP_FLAG ? 1 : 0,
dds->flags & DDS_SLAVE_ONLY ? 1 : 0,
dds->numberPorts, dds->numberPorts,
dds->priority1, dds->priority1,
dds->clockQuality.clockClass, dds->clockQuality.clockClass,