From e2982e7f6f0b624a773ec5a58885ee80fab46d34 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sun, 7 Jan 2018 11:47:30 +0100 Subject: Update ND_PRINT() as a variadic macro --- print-sunatm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-sunatm.c') diff --git a/print-sunatm.c b/print-sunatm.c index 4692c270..65578366 100644 --- a/print-sunatm.c +++ b/print-sunatm.c @@ -73,12 +73,12 @@ sunatm_if_print(netdissect_options *ndo, u_int traftype; if (caplen < PKT_BEGIN_POS) { - ND_PRINT((ndo, "[|atm]")); + ND_PRINT("[|atm]"); return (caplen); } if (ndo->ndo_eflag) { - ND_PRINT((ndo, EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: ")); + ND_PRINT(EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: "); } switch (EXTRACT_U_1(p + DIR_POS) & 0x0f) { -- cgit v1.2.1