Fix USIO log spam
This commit is contained in:
@@ -194,7 +194,7 @@ void usb_device_passthrough::interrupt_transfer(u32 buf_size, u8* buf, u32 endpo
|
|||||||
const UsbDeviceEndpoint* ep_desc = find_endpoint(static_cast<u8>(endpoint));
|
const UsbDeviceEndpoint* ep_desc = find_endpoint(static_cast<u8>(endpoint));
|
||||||
const bool is_bulk = ep_desc && (ep_desc->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) == LIBUSB_TRANSFER_TYPE_BULK;
|
const bool is_bulk = ep_desc && (ep_desc->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) == LIBUSB_TRANSFER_TYPE_BULK;
|
||||||
|
|
||||||
sys_usbd.notice("USIO debug: submitting passthrough transfer endpoint=0x%x dir=%s size=0x%x type=%s",
|
sys_usbd.trace("USIO debug: submitting passthrough transfer endpoint=0x%x dir=%s size=0x%x type=%s",
|
||||||
endpoint, (endpoint & LIBUSB_ENDPOINT_IN) ? "IN" : "OUT", buf_size, is_bulk ? "bulk" : "interrupt");
|
endpoint, (endpoint & LIBUSB_ENDPOINT_IN) ? "IN" : "OUT", buf_size, is_bulk ? "bulk" : "interrupt");
|
||||||
|
|
||||||
if (is_bulk)
|
if (is_bulk)
|
||||||
|
|||||||
@@ -901,7 +901,7 @@ std::string keyboard_pad_handler::GetKeyName(const QKeyEvent* keyEvent, bool wit
|
|||||||
return QKeySequence(keyEvent->key()).toString(QKeySequence::NativeText).toStdString();
|
return QKeySequence(keyEvent->key()).toString(QKeySequence::NativeText).toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string keyboard_pad_handler::GetKeyName(const u32& keyCode)
|
std::string keyboard_pad_handler::GetKeyName(u32 keyCode)
|
||||||
{
|
{
|
||||||
return QKeySequence(keyCode).toString(QKeySequence::NativeText).toStdString();
|
return QKeySequence(keyCode).toString(QKeySequence::NativeText).toStdString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
static std::string GetMouseName(u32 button);
|
static std::string GetMouseName(u32 button);
|
||||||
static QStringList GetKeyNames(const QKeyEvent* keyEvent);
|
static QStringList GetKeyNames(const QKeyEvent* keyEvent);
|
||||||
static std::string GetKeyName(const QKeyEvent* keyEvent, bool with_modifiers);
|
static std::string GetKeyName(const QKeyEvent* keyEvent, bool with_modifiers);
|
||||||
static std::string GetKeyName(const u32& keyCode);
|
static std::string GetKeyName(u32 keyCode);
|
||||||
static std::vector<std::set<u32>> GetKeyCombos(const std::string& cfg_string);
|
static std::vector<std::set<u32>> GetKeyCombos(const std::string& cfg_string);
|
||||||
static u32 GetKeyCode(const QString& keyName);
|
static u32 GetKeyCode(const QString& keyName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user