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. */
sr_err("Error sending command: %d.", ret);
return ret;
}
- sr_dbg("Sent %d bytes.", ret);
return (ret == (int)count) ? SR_OK : SR_ERR;
}