X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fzketech-ebd-usb%2Fprotocol.c;h=0c99ea5034b5d70344a95244e78ab3aba275e9d5;hb=0fb45121254b159e1dabf8fd3f3bbd84e4aa693d;hp=be4aa285e2bad66ff0fff9e6c5e2515a46b2024b;hpb=330a32b240ffe7702ab41d5b736b92cb39cf693d;p=libsigrok.git diff --git a/src/hardware/zketech-ebd-usb/protocol.c b/src/hardware/zketech-ebd-usb/protocol.c index be4aa285..0c99ea50 100644 --- a/src/hardware/zketech-ebd-usb/protocol.c +++ b/src/hardware/zketech-ebd-usb/protocol.c @@ -30,7 +30,7 @@ static void log_buf(const char *message, uint8_t buf[], size_t count) buffer[count * 2] = 0; - sr_dbg("%s: %s [%lu bytes]", message, buffer, count); + sr_dbg("%s: %s [%zu bytes]", message, buffer, count); } /* Send a command to the device. */ @@ -44,7 +44,6 @@ static int send_cmd(struct sr_serial_dev_inst *serial, uint8_t buf[], size_t cou sr_err("Error sending command: %d.", ret); return ret; } - sr_dbg("Sent %d bytes.", ret); return (ret == (int)count) ? SR_OK : SR_ERR; }