From 012a2802e00a7b34e47c8c1098dc093031044ce9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 22 Apr 2024 18:44:25 +0100 Subject: Protocols: implement protoLog --- src/protocols/CursorShape.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/protocols/CursorShape.cpp') diff --git a/src/protocols/CursorShape.cpp b/src/protocols/CursorShape.cpp index e04cccb4..fb26d7a2 100644 --- a/src/protocols/CursorShape.cpp +++ b/src/protocols/CursorShape.cpp @@ -1,6 +1,8 @@ #include "CursorShape.hpp" #include +#define LOGM PROTO::cursorShape->protoLog + // clang-format off constexpr const char* SHAPE_NAMES[] = { "invalid", @@ -72,6 +74,7 @@ void CCursorShapeProtocol::onGetTabletToolV2(CWpCursorShapeManagerV1* pMgr, uint void CCursorShapeProtocol::createCursorShapeDevice(CWpCursorShapeManagerV1* pMgr, uint32_t id, wl_resource* resource) { if (m_mDevices.contains(resource)) { + LOGM(ERR, "CursorShape device already exists for {:x}", (uintptr_t)resource); wl_resource_post_error(resource, 0, "Device already exists"); return; } -- cgit v1.2.3