Use proper management TLV name in print.
Use a simple 16 unsigned bits format.

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

diff --git a/pmc.c b/pmc.c
index 0591dd1..e218ca4 100644
--- a/pmc.c
+++ b/pmc.c
@@ -546,8 +546,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 "actual_table_size %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