Code

frontend/sock: Fixed an info message.
authorSebastian Harl <sh@tokkee.org>
Mon, 11 Nov 2013 08:25:46 +0000 (09:25 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 11 Nov 2013 08:25:46 +0000 (09:25 +0100)
;-)

src/frontend/sock.c

index d11fc421669ee3535b6762f5a09d8d3e4227936a..11fa936686da75e169445842840cad502615d676 100644 (file)
@@ -346,7 +346,7 @@ connection_destroy(sdb_object_t *obj)
        len = sdb_strbuf_len(conn->conn.buf);
        if (len)
                sdb_log(SDB_LOG_INFO, "frontend: Discarding incomplete command "
-                               "(%zu bytes left in buffer)", len);
+                               "(%zu byte%s left in buffer)", len, len == 1 ? "" : "s");
 
        sdb_log(SDB_LOG_DEBUG, "frontend: Closing connection on fd=%i",
                        conn->conn.fd);