]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use __func__ from C99 in two function calls
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 31 Oct 2021 12:27:20 +0000 (13:27 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 31 Oct 2021 12:27:20 +0000 (13:27 +0100)
print-esp.c

index d1ea1005d5d47145a89d3125409217f962ff88e1..55bf64346d7521328fc0cbfdda211315eec45ecf 100644 (file)
@@ -319,7 +319,7 @@ int esp_decrypt_buffer_by_ikev2_print(netdissect_options *ndo,
 
        if(end <= ct) return 0;
 
-       pt = do_decrypt(ndo, "esp_decrypt_buffer_by_ikev2_print", sa, iv,
+       pt = do_decrypt(ndo, __func__, sa, iv,
            ct, ctlen);
        if (pt == NULL)
                return 0;
@@ -870,7 +870,7 @@ esp_print(netdissect_options *ndo,
                return;
        }
 
-       pt = do_decrypt(ndo, "esp_print", sa, iv, ct, payloadlen);
+       pt = do_decrypt(ndo, __func__, sa, iv, ct, payloadlen);
        if (pt == NULL)
                return;