pmc: Fix LOG_SYNC_INTERVAL

In pmc, there is a little bug (only text, not functional):
When pmc is called with the management id 'LOG_SYNC_INTERVAL',
the response is '... seq 0 RESPONSE MANAGEMENT ANNOUNCE_RECEIPT_TIMEOUT' .
It should be '... seq 0 RESPONSE MANAGEMENT LOG_SYNC_INTERVAL'.
This patch fixes this.

[RC: Include explanation from 0/1 in commit message. ]

Signed-off-by: Peter Schneider <peter@psch.de>
master
Peter Schneider 2018-04-17 20:59:09 +02:00 committed by Richard Cochran
parent 89969b4b0f
commit 0455489158
1 changed files with 1 additions and 1 deletions

2
pmc.c
View File

@ -414,7 +414,7 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
break;
case TLV_LOG_SYNC_INTERVAL:
mtd = (struct management_tlv_datum *) mgt->data;
fprintf(fp, "ANNOUNCE_RECEIPT_TIMEOUT "
fprintf(fp, "LOG_SYNC_INTERVAL "
IFMT "logSyncInterval %hhd", mtd->val);
break;
case TLV_VERSION_NUMBER: