Unify xxx_open() debug message for flip1/2

This commit is contained in:
stefanrueger
2025-10-24 11:24:04 +02:00
parent d296cb5bee
commit f197504b80

View File

@@ -100,6 +100,8 @@ struct dfu_dev *dfu_open(const char *port_spec) {
* function, where we actually open the device.
*/
pmsg_debug("%s(\"%s\")\n", __func__, port_spec);
if(!str_starts(port_spec, "usb:") && !str_eq(port_spec, "usb")) {
pmsg_error("invalid -P %s; drop this option or use -P usb:<bus>:<device>\n", port_spec);
return NULL;