From 8784a01787f72bfea7124ecb2b896ebf644d1824 Mon Sep 17 00:00:00 2001 From: YaoBing Xiao Date: Wed, 16 Oct 2024 13:21:52 +0800 Subject: [PATCH] Client: Implement interface name printing for Wayland protocol Change-Id: I73eb629caedf3c9f78b5d83168549125422092b6 Reviewed-by: David Edmundson --- src/plugins/platforms/wayland/global/qwaylandclientextension.h | 3 ++- .../wayland/shellintegration/qwaylandshellintegration_p.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/wayland/global/qwaylandclientextension.h b/src/plugins/platforms/wayland/global/qwaylandclientextension.h index c57549c34a8..774c5ba7750 100644 --- a/src/plugins/platforms/wayland/global/qwaylandclientextension.h +++ b/src/plugins/platforms/wayland/global/qwaylandclientextension.h @@ -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); diff --git a/src/plugins/platforms/wayland/shellintegration/qwaylandshellintegration_p.h b/src/plugins/platforms/wayland/shellintegration/qwaylandshellintegration_p.h index 791a940435f..59b3c9e5a13 100644 --- a/src/plugins/platforms/wayland/shellintegration/qwaylandshellintegration_p.h +++ b/src/plugins/platforms/wayland/shellintegration/qwaylandshellintegration_p.h @@ -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);