From: Martin Ling Date: Sat, 23 Nov 2013 21:21:18 +0000 (+0000) Subject: Fix bug in debug message generation in sp_flush(). X-Git-Tag: libserialport-0.1.0~52 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0ba3e49b45999e159dd8f9bda5abc1710d69eefb;p=libserialport.git Fix bug in debug message generation in sp_flush(). --- diff --git a/serialport.c b/serialport.c index 3f9989d..fbeb76e 100644 --- a/serialport.c +++ b/serialport.c @@ -684,7 +684,7 @@ enum sp_return sp_flush(struct sp_port *port, enum sp_buffer buffers) if (buffers > SP_BUF_BOTH) RETURN_ERROR(SP_ERR_ARG, "Invalid buffer selection"); - const char *buffer_names[] = {"input", "output", "both"}; + const char *buffer_names[] = {"no", "input", "output", "both"}; DEBUG("Flushing %s buffers on port %s", buffer_names[buffers], port->name);