]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
OpenFlow: Have a function for each message type.
[tcpdump] / print-tcp.c
index ff5279c3ad84db7f9ebd428e9179ce04c0f9db4c..a1aae18a8f23b1ab615c14099bfb2a577f2dfd6e 100644 (file)
@@ -298,7 +298,7 @@ tcp_print(netdissect_options *ndo,
                                         if (th->nxt == NULL)
                                                 (*ndo->ndo_error)(ndo,
                                                         S_ERR_ND_MEM_ALLOC,
-                                                        "tcp_print: calloc");
+                                                        "%s: calloc", __func__);
                                 }
                                 th->addr = tha;
                                 if (rev)
@@ -356,7 +356,7 @@ tcp_print(netdissect_options *ndo,
                                         if (th->nxt == NULL)
                                                 (*ndo->ndo_error)(ndo,
                                                         S_ERR_ND_MEM_ALLOC,
-                                                        "tcp_print: calloc");
+                                                        "%s: calloc", __func__);
                                 }
                                 th->addr = tha;
                                 if (rev)