From d3aa65d986ed0cb034c04c70959f9ace4dfc7b3c Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sat, 6 Aug 2016 14:54:07 +0200 Subject: [PATCH] GlobalShortcut_win: log product guid when adding a new DirectInput device. Previously, we only logged the instance GUID, not the product GUID. With this change, the log line when adding a new device contains both. --- src/mumble/GlobalShortcut_win.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mumble/GlobalShortcut_win.cpp b/src/mumble/GlobalShortcut_win.cpp index fd0561f0c..bc88ee6c4 100644 --- a/src/mumble/GlobalShortcut_win.cpp +++ b/src/mumble/GlobalShortcut_win.cpp @@ -547,12 +547,13 @@ BOOL GlobalShortcutWin::EnumDevicesCB(LPCDIDEVICEINSTANCE pdidi, LPVOID pContext if (FAILED(hr = id->pDID->SetProperty(DIPROP_BUFFERSIZE, &dipdw.diph))) qFatal("GlobalShortcutWin: SetProperty: %lx", hr); - qWarning("Adding device %s %s %s:%d type 0x%.8x", + qWarning("Adding device %s %s %s:%d type 0x%.8x guid product %s", qPrintable(QUuid(id->guid).toString()), qPrintable(name), qPrintable(sname), id->qhNames.count(), - pdidi->dwDevType); + pdidi->dwDevType, + qPrintable(id->vguidproduct.toString())); cbgsw->qhInputDevices[id->guid] = id; } else {