pmc: remove trailing spaces from format strings.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-12-02 10:13:15 +01:00
parent 04fe330e81
commit 61e1861e27
1 changed files with 19 additions and 19 deletions

38
pmc.c
View File

@ -201,14 +201,14 @@ 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 "numberPorts %hu " IFMT "numberPorts %hu"
IFMT "priority1 %hhu " IFMT "priority1 %hhu"
IFMT "clockClass 0x%02hhx " IFMT "clockClass 0x%02hhx"
IFMT "clockAccuracy %hhu " IFMT "clockAccuracy %hhu"
IFMT "offsetScaledLogVariance 0x%04hx " IFMT "offsetScaledLogVariance 0x%04hx"
IFMT "priority2 %hhu " IFMT "priority2 %hhu"
IFMT "clockIdentity %s " IFMT "clockIdentity %s"
IFMT "domainNumber %hhu ", IFMT "domainNumber %hhu",
dds->numberPorts, dds->numberPorts,
dds->priority1, dds->priority1,
dds->clockQuality.clockClass, dds->clockQuality.clockClass,
@ -221,9 +221,9 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
case CURRENT_DATA_SET: case CURRENT_DATA_SET:
cds = (struct currentDS *) mgt->data; cds = (struct currentDS *) mgt->data;
fprintf(fp, "CURRENT_DATA_SET " fprintf(fp, "CURRENT_DATA_SET "
IFMT "stepsRemoved %hd " IFMT "stepsRemoved %hd"
IFMT "offsetFromMaster %.1f " IFMT "offsetFromMaster %.1f"
IFMT "meanPathDelay %.1f ", IFMT "meanPathDelay %.1f",
cds->stepsRemoved, cds->offsetFromMaster / 65536.0, cds->stepsRemoved, cds->offsetFromMaster / 65536.0,
cds->meanPathDelay / 65536.0); cds->meanPathDelay / 65536.0);
break; break;
@ -254,14 +254,14 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
case TIME_STATUS_NP: case TIME_STATUS_NP:
tsn = (struct time_status_np *) mgt->data; tsn = (struct time_status_np *) mgt->data;
fprintf(fp, "TIME_STATUS_NP " fprintf(fp, "TIME_STATUS_NP "
IFMT "master_offset %lld " IFMT "master_offset %lld"
IFMT "ingress_time %lld " IFMT "ingress_time %lld"
IFMT "cumulativeScaledRateOffset %+.9f " IFMT "cumulativeScaledRateOffset %+.9f"
IFMT "scaledLastGmPhaseChange %d " IFMT "scaledLastGmPhaseChange %d"
IFMT "gmTimeBaseIndicator %hu " IFMT "gmTimeBaseIndicator %hu"
IFMT "lastGmPhaseChange 0x%04hx'%016llx.%04hx " IFMT "lastGmPhaseChange 0x%04hx'%016llx.%04hx"
IFMT "gmPresent %s " IFMT "gmPresent %s"
IFMT "gmIdentity %s ", IFMT "gmIdentity %s",
tsn->master_offset, tsn->master_offset,
tsn->ingress_time, tsn->ingress_time,
1.0 + (tsn->cumulativeScaledRateOffset + 0.0) / P41, 1.0 + (tsn->cumulativeScaledRateOffset + 0.0) / P41,