Use proper management TLV name in print.
Use a simple 16 unsigned bits format.
Follow standard name for number of records in a table.

Signed-off-by: Erez Geva <erez.geva....@siemens.com>
---
 pmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pmc.c b/pmc.c
index 7916153..ab36856 100644
--- a/pmc.c
+++ b/pmc.c
@@ -545,8 +545,8 @@ static void pmc_show(struct ptp_message *msg, FILE *fp)
                break;
        case MID_UNICAST_MASTER_TABLE_NP:
                umtn = (struct unicast_master_table_np *) mgt->data;
-               fprintf(fp, "MID_UNICAST_MASTER_TABLE_NP "
-                       IFMT "actual_table_size %" PRIu16,
+               fprintf(fp, "UNICAST_MASTER_TABLE_NP "
+                       IFMT "actualTableSize %hu",
                        umtn->actual_table_size);
                buf = (uint8_t *) umtn->unicast_masters;
                // table header
-- 
2.30.2



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to