]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-token.c
Again, we don't replace vfprintf().
[tcpdump] / print-token.c
index 80e7e88b3c557bf8b1da1fac4139adf9f09d2ee9..78485a3f83fdaec080356dbdd2cc5b4bb10fe64a 100644 (file)
 /* \summary: Token Ring printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include <string.h>
 
@@ -188,7 +188,7 @@ token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
                        ND_PRINT("%s", direction[DIRECTION(trp)]);
 
                        for (seg = 0; seg < SEGMENT_COUNT(trp); seg++)
-                               ND_PRINT(" [%d:%d]", RING_NUMBER(trp, seg),
+                               ND_PRINT(" [%u:%u]", RING_NUMBER(trp, seg),
                                    BRIDGE_NUMBER(trp, seg));
                } else {
                        ND_PRINT("rt = %x", EXTRACT_BE_U_2(trp->token_rcf));