diff options
author | Guy Harris <gharris@sonic.net> | 2020-05-27 20:37:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 20:37:15 -0700 |
commit | 4fbe188313065647f3627e871c6646c6ac79a27c (patch) | |
tree | 14c3e13faa966e99b3cee2fee6791fd3d3bf39b6 /print-macsec.c | |
parent | da4b8e2a71a82112b32fb5c03e8b4a7f832ae157 (diff) | |
download | tcpdump-4fbe188313065647f3627e871c6646c6ac79a27c.tar.gz |
Fix to use the new ND_PRINT().
It's a varargs macro, so it doesn't need the extra layer of parentheses,
and it doesn't take `ndo` as an argument.
Diffstat (limited to 'print-macsec.c')
-rw-r--r-- | print-macsec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-macsec.c b/print-macsec.c index b1f96cf6..ca6998a3 100644 --- a/print-macsec.c +++ b/print-macsec.c @@ -136,12 +136,12 @@ int macsec_print(netdissect_options *ndo, const u_char **bp, u_int len; if (!macsec_check_length(sectag, length, caplen)) { - ND_PRINT((ndo, tstr)); + ND_PRINT(tstr); return hdrlen + caplen; } if (sectag->unused || sectag->tci_an & MACSEC_TCI_VERSION) { - ND_PRINT((ndo, "%s", istr)); + ND_PRINT("%s", istr); return hdrlen + caplen; } @@ -174,13 +174,13 @@ int macsec_print(netdissect_options *ndo, const u_char **bp, n += r; } - ND_PRINT((ndo, "%s, ", buf)); + ND_PRINT("%s, ", buf); } len = ieee8021ae_sectag_len(ndo, sectag); *length_type = GET_BE_U_2(*bp + len); if (ndo->ndo_eflag && *length_type > ETHERMTU && !(GET_U_1(sectag->tci_an) & MACSEC_TCI_E)) - ND_PRINT((ndo, "ethertype %s, ", tok2str(ethertype_values,"0x%04x", *length_type))); + ND_PRINT("ethertype %s, ", tok2str(ethertype_values,"0x%04x", *length_type)); if ((GET_U_1(sectag->tci_an) & MACSEC_TCI_CONFID)) { *bp += len; |