fpi-device: Add more specific debug info for usb errors

This commit is contained in:
Marco Trevisan (Treviño)
2026-07-25 21:21:50 +00:00
committed by Marco Trevisan
parent 91012c3690
commit 1b589a9245
+2
View File
@@ -68,6 +68,8 @@ error_to_string (GError * error)
domain_str = g_enum_to_string (FP_TYPE_DEVICE_ERROR, error->code);
else if (error->domain == G_IO_ERROR)
domain_str = g_enum_to_string (g_io_error_enum_get_type (), error->code);
else if (error->domain == G_USB_DEVICE_ERROR)
domain_str = g_strdup_printf ("G_USB_DEVICE_ERROR_%u", error->code);
else
domain_str = g_strdup_printf ("UNKNOWN_ERROR_%u", error->domain);