From 81d8ef3ecba8d62a30bcc2e87c161c75abcd40df Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 22 Jul 2015 02:45:32 -0500 Subject: [PATCH] Add time display to hotplug messages. --- src/inputdaemon.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/inputdaemon.cpp b/src/inputdaemon.cpp index 401e0bb7..a30e847f 100644 --- a/src/inputdaemon.cpp +++ b/src/inputdaemon.cpp @@ -897,7 +897,9 @@ void InputDaemon::secondInputPass(QQueue *sdlEventQueue) InputDevice *device = joysticks->value(event.jdevice.which); if (device) { - Logger::LogInfo(QString("Removing joystick #%1").arg(device->getRealJoyNumber())); + Logger::LogInfo(QString("Removing joystick #%1 [%2]") + .arg(device->getRealJoyNumber()) + .arg(QTime::currentTime().toString("hh:mm:ss.zzz"))); removeDevice(device); } @@ -906,7 +908,9 @@ void InputDaemon::secondInputPass(QQueue *sdlEventQueue) case SDL_JOYDEVICEADDED: { - Logger::LogInfo(QString("New joystick found - #%1").arg(event.jdevice.which+1)); + Logger::LogInfo(QString("New joystick found - #%1 [%2]") + .arg(event.jdevice.which+1) + .arg(QTime::currentTime().toString("hh:mm:ss.zzz"))); addInputDevice(event.jdevice.which); break; }