From 592a5b0b91f3b3941c906e1b9d84bfb0bb0d46dd Mon Sep 17 00:00:00 2001
From: Damjan Marion <damarion@cisco.com>
Date: Mon, 10 Feb 2025 20:34:47 +0100
Subject: build: replace __FUNCTION__ with C11 __func__

Type: improvement

Change-Id: I6cf7aaf42e8c0738d5b677fa66c99f071c1526bb
Signed-off-by: Damjan Marion <damarion@cisco.com>
---
 src/plugins/quic/quic_crypto.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'src/plugins/quic/quic_crypto.c')

diff --git a/src/plugins/quic/quic_crypto.c b/src/plugins/quic/quic_crypto.c
index 9e2c915daaa..4e11eff2431 100644
--- a/src/plugins/quic/quic_crypto.c
+++ b/src/plugins/quic/quic_crypto.c
@@ -248,8 +248,7 @@ quic_crypto_decrypt_packet (quic_ctx_t *qctx, quic_rx_packet_ctx_t *pctx)
 	 pctx->packet.octets.len - aead_off, pn, pctx->packet.octets.base,
 	 aead_off)) == SIZE_MAX)
     {
-      fprintf (stderr, "%s: aead decryption failure (pn: %d)\n", __FUNCTION__,
-	       pn);
+      fprintf (stderr, "%s: aead decryption failure (pn: %d)\n", __func__, pn);
       return;
     }
 
@@ -349,8 +348,7 @@ quic_crypto_cipher_setup_crypto (ptls_cipher_context_t *_ctx, int is_enc,
     }
   else
     {
-      QUIC_DBG (1, "%s, Invalid crypto cipher : ", __FUNCTION__,
-		_ctx->algo->name);
+      QUIC_DBG (1, "%s, Invalid crypto cipher : ", __func__, _ctx->algo->name);
       assert (0);
     }
 
@@ -405,8 +403,7 @@ quic_crypto_aead_setup_crypto (ptls_aead_context_t *_ctx, int is_enc,
     }
   else
     {
-      QUIC_DBG (1, "%s, invalied aead cipher %s", __FUNCTION__,
-		_ctx->algo->name);
+      QUIC_DBG (1, "%s, invalied aead cipher %s", __func__, _ctx->algo->name);
       assert (0);
     }
 
-- 
cgit