diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-07 11:47:30 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-07 13:36:41 +0100 |
commit | e2982e7f6f0b624a773ec5a58885ee80fab46d34 (patch) | |
tree | 52c8e511ccaff8ef09dc3337b213273865522162 /print-esp.c | |
parent | 8ab5c3a4e75a3ce8da691cd6ca6a9945082827af (diff) | |
download | tcpdump-e2982e7f6f0b624a773ec5a58885ee80fab46d34.tar.gz |
Update ND_PRINT() as a variadic macro
Diffstat (limited to 'print-esp.c')
-rw-r--r-- | print-esp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-esp.c b/print-esp.c index 4de04c4a..7013a0c5 100644 --- a/print-esp.c +++ b/print-esp.c @@ -681,12 +681,12 @@ esp_print(netdissect_options *ndo, ep = ndo->ndo_snapend; if ((const u_char *)(esp + 1) >= ep) { - ND_PRINT((ndo, "[|ESP]")); + ND_PRINT("[|ESP]"); goto fail; } - ND_PRINT((ndo, "ESP(spi=0x%08x", EXTRACT_BE_U_4(esp->esp_spi))); - ND_PRINT((ndo, ",seq=0x%x)", EXTRACT_BE_U_4(esp->esp_seq))); - ND_PRINT((ndo, ", length %u", length)); + ND_PRINT("ESP(spi=0x%08x", EXTRACT_BE_U_4(esp->esp_spi)); + ND_PRINT(",seq=0x%x)", EXTRACT_BE_U_4(esp->esp_seq)); + ND_PRINT(", length %u", length); #ifndef HAVE_LIBCRYPTO goto fail; @@ -817,7 +817,7 @@ esp_print(netdissect_options *ndo, if (nhdr) *nhdr = EXTRACT_U_1(ep - 1); - ND_PRINT((ndo, ": ")); + ND_PRINT(": "); return advance; #endif |