Client: Implement interface name printing for Wayland protocol

Change-Id: I73eb629caedf3c9f78b5d83168549125422092b6
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
YaoBing Xiao 2024-10-16 13:21:52 +08:00
parent 2d5c66b79c
commit 8784a01787
2 changed files with 4 additions and 2 deletions

View File

@ -84,7 +84,8 @@ public:
// developer and the version specified in the protocol and also the
// compositor version.
if (this->version() > T::interface()->version) {
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead.");
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead. interface.name: %s",
T::interface()->name);
}
int minVersion = qMin(ver, qMin(T::interface()->version, this->version()));
setVersion(minVersion);

View File

@ -81,7 +81,8 @@ public:
// developer and the version specified in the protocol and also the
// compositor version.
if (this->version() > T::interface()->version) {
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead.");
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead. interface.name: %s",
T::interface()->name);
}
int minVersion = qMin(ver, qMin(T::interface()->version, this->version()));
setVersion(minVersion);