From a97e9b119e58dd2d59fa479b6c753c940d093e8f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 24 Mar 2022 14:06:05 +0100 Subject: [PATCH] Print GnuTLS certificate status as hex It's a bit field so it's easier to decode in hex. --- common/rfb/CSecurityTLS.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index 54d995b1..ca1c919b 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -390,7 +390,7 @@ void CSecurityTLS::checkSession() if ((status & (~allowed_errors)) != 0) { /* No other errors are allowed */ - vlog.debug("GNUTLS status of certificate verification: %u", status); + vlog.debug("GNUTLS status of certificate verification: 0x%x", status); throw AuthFailureException("Invalid status of server certificate verification"); } -- 2.39.5