]> sigrok.org Git - libsigrok.git/commit - src/hardware/greatfet/protocol.c
greatfet: don't print misleading "unknown" libusb error text
authorGerhard Sittig <redacted>
Sun, 29 Oct 2023 16:37:59 +0000 (17:37 +0100)
committerGerhard Sittig <redacted>
Sun, 29 Oct 2023 17:06:11 +0000 (18:06 +0100)
commit2c3fadf536f3747137b17fae0c743ec8752725fd
tree2c432bea9b9a7fba92c77e1c210c8bb7c4d85492
parent0dc36c9c8057670396f07797e950d5d92da202fb
greatfet: don't print misleading "unknown" libusb error text

Only lookup libusb error messages for negative return values which
communicate error codes. Positive return values are transmission counts
and are not an error.

The "UNKNOWN" messages only were seen at higher log levels. Users were
not affected by the issue.
src/hardware/greatfet/protocol.c