GNUTLS already supports dynamically enabling its logging at runtime by setting the env var 'GNUTLS_DEBUG_LEVEL=10', so there is no need to re-invent this logic in QEMU in a way that requires a re-compile.
Signed-off-by: Daniel P. Berrangé <berra...@redhat.com> --- crypto/init.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crypto/init.c b/crypto/init.c index fb7f1bff10..2d6dfa3091 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -34,13 +34,6 @@ #include "crypto/random.h" -/* #define DEBUG_GNUTLS */ -#ifdef DEBUG_GNUTLS -static void qcrypto_gnutls_log(int level, const char *str) -{ - fprintf(stderr, "%d: %s", level, str); -} -#endif int qcrypto_init(Error **errp) { @@ -53,10 +46,6 @@ int qcrypto_init(Error **errp) gnutls_strerror(ret)); return -1; } -#ifdef DEBUG_GNUTLS - gnutls_global_set_log_level(10); - gnutls_global_set_log_function(qcrypto_gnutls_log); -#endif #endif #ifdef CONFIG_GCRYPT -- 2.45.2