diff --git a/src/modbus.c b/src/modbus.c index cc36d62c9..07714900e 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -121,7 +121,8 @@ int modbus_flush(modbus_t *ctx) { int rc = ctx->backend->flush(ctx); if (rc != -1 && ctx->debug) { - printf("%d bytes flushed\n", rc); + /* Not all backends are able to return the number of bytes flushed */ + printf("Bytes flushed (%d)\n", rc); } return rc; }