Fix a small formatting error

`obuf - _obuf` returns `long` rather than `long long`
This commit is contained in:
letaldev 2026-01-07 15:51:17 -03:00 committed by GitHub
parent b870ee4c4f
commit a1599b63f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ int CH347Jtag::usb_xfer(unsigned wlen, unsigned rlen, unsigned *ract, bool defer
{
int actual_length = 0;
if (_verbose) {
fprintf(stderr, "usb_xfer: deferred: %lld\n", obuf - _obuf);
fprintf(stderr, "usb_xfer: deferred: %ld\n", obuf - _obuf);
}
if (defer && !rlen && obuf - _obuf + wlen < (MAX_BUFFER - 12)) {
obuf += wlen;