]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-otv.c
Update ND_PRINT() as a variadic macro
[tcpdump] / print-otv.c
index 502f93e419810c0aea6c68c85c48b5d4bdee4dcd..0b98e74c10a5a0e46a793dd38281a98a37fd97dc 100644 (file)
@@ -45,21 +45,21 @@ otv_print(netdissect_options *ndo, const u_char *bp, u_int len)
 {
     uint8_t flags;
 
-    ND_PRINT((ndo, "OTV, "));
+    ND_PRINT("OTV, ");
     if (len < OTV_HDR_LEN)
         goto trunc;
 
     ND_TCHECK_1(bp);
     flags = EXTRACT_U_1(bp);
-    ND_PRINT((ndo, "flags [%s] (0x%02x), ", flags & 0x08 ? "I" : ".", flags));
+    ND_PRINT("flags [%s] (0x%02x), ", flags & 0x08 ? "I" : ".", flags);
     bp += 1;
 
     ND_TCHECK_3(bp);
-    ND_PRINT((ndo, "overlay %u, ", EXTRACT_BE_U_3(bp)));
+    ND_PRINT("overlay %u, ", EXTRACT_BE_U_3(bp));
     bp += 3;
 
     ND_TCHECK_3(bp);
-    ND_PRINT((ndo, "instance %u\n", EXTRACT_BE_U_3(bp)));
+    ND_PRINT("instance %u\n", EXTRACT_BE_U_3(bp));
     bp += 3;
 
     /* Reserved */
@@ -70,5 +70,5 @@ otv_print(netdissect_options *ndo, const u_char *bp, u_int len)
     return;
 
 trunc:
-    ND_PRINT((ndo, " [|OTV]"));
+    ND_PRINT(" [|OTV]");
 }