]> sigrok.org Git - libserialport.git/commitdiff
Fix bug in debug message generation in sp_flush().
authorMartin Ling <redacted>
Sat, 23 Nov 2013 21:21:18 +0000 (21:21 +0000)
committerMartin Ling <redacted>
Sat, 23 Nov 2013 21:21:18 +0000 (21:21 +0000)
serialport.c

index 3f9989d8f6fb6d8439d594e18473ec83ef75c290..fbeb76ee52c88c01f4ab08af5f73b09d2d0abf48 100644 (file)
@@ -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);