Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/34641 )
Change subject: usbdev: do not accept serial numbers which starting the same as expected one, but shorter ......................................................................
Patch Set 2:
See code comment above the changed line. The current behavior is intended. The code could always be extended, though, e.g. we could issue a warning or bail ot if multiple devices match the serial prefix?
Ah, next time I will read not just code. I discovered this behaviour while tested the STLink V3 and found it strange.
Which solution would you prefer?
Bailing out if there are multiple matches, I guess. Though, that's probably hardest to implement.