From b932f798a271f1301026b8878b12310df8448c44 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Sat, 1 Apr 2023 17:13:35 +0200 Subject: [PATCH] QSslCertificate: Add property names to debug operator<< When qDebugging a QSslCertificate, its properties are printed without property names. That makes it difficult to identify which output string correlates to which data element. This patch adds the property name to each output field. Pick-to: 6.5 Change-Id: Icdc54520e048f5fa03e8d9ed0ab2a42371e5a00d Reviewed-by: Timur Pocheptsov --- src/network/ssl/qsslcertificate.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp index 0f851ec7c9..7270f5996a 100644 --- a/src/network/ssl/qsslcertificate.cpp +++ b/src/network/ssl/qsslcertificate.cpp @@ -974,15 +974,15 @@ QDebug operator<<(QDebug debug, const QSslCertificate &certificate) QDebugStateSaver saver(debug); debug.resetFormat().nospace(); debug << "QSslCertificate(" - << certificate.version() - << ", " << certificate.serialNumber() - << ", " << certificate.digest().toBase64() - << ", " << certificate.issuerDisplayName() - << ", " << certificate.subjectDisplayName() - << ", " << certificate.subjectAlternativeNames() + << "Version=" << certificate.version() + << ", SerialNumber=" << certificate.serialNumber() + << ", Digest=" << certificate.digest().toBase64() + << ", Issuer=" << certificate.issuerDisplayName() + << ", Subject=" << certificate.subjectDisplayName() + << ", AlternativeSubjectNames=" << certificate.subjectAlternativeNames() #if QT_CONFIG(datestring) - << ", " << certificate.effectiveDate() - << ", " << certificate.expiryDate() + << ", EffectiveDate=" << certificate.effectiveDate() + << ", ExpiryDate=" << certificate.expiryDate() #endif << ')'; return debug;