hosted/stlinkv2: Cleaned up the new error messages as they weren't outputting nicely

This commit is contained in:
dragonmux 2022-04-14 14:46:44 -04:00 committed by Rachel Mant
parent a27661cd0b
commit c4869a5473
1 changed files with 2 additions and 2 deletions

View File

@ -522,9 +522,9 @@ int stlink_init(bmp_info_t *info)
} }
if ((result = libusb_open(dev, &sl->ul_libusb_device_handle)) != LIBUSB_SUCCESS) if ((result = libusb_open(dev, &sl->ul_libusb_device_handle)) != LIBUSB_SUCCESS)
{ {
DEBUG_WARN("Failed to open STLink device %#06x:%#06x - %s", DEBUG_WARN("Failed to open STLink device %04x:%04x - %s\n",
desc.idVendor, desc.idProduct, libusb_strerror(result)); desc.idVendor, desc.idProduct, libusb_strerror(result));
DEBUG_WARN("Are you sure the permissions on the device are set correctly?"); DEBUG_WARN("Are you sure the permissions on the device are set correctly?\n");
continue; continue;
} }
char serial[64]; char serial[64];