From c4869a54733ae92099a7316954e34d1ab7b6097c Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 14 Apr 2022 14:46:44 -0400 Subject: [PATCH] hosted/stlinkv2: Cleaned up the new error messages as they weren't outputting nicely --- src/platforms/hosted/stlinkv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/hosted/stlinkv2.c b/src/platforms/hosted/stlinkv2.c index 0198b721..1a814de1 100644 --- a/src/platforms/hosted/stlinkv2.c +++ b/src/platforms/hosted/stlinkv2.c @@ -522,9 +522,9 @@ int stlink_init(bmp_info_t *info) } 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)); - 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; } char serial[64];