gweb: Make debug for write simpler
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Jun 2011 20:12:44 +0000 (22:12 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Jun 2011 20:12:44 +0000 (22:12 +0200)
gweb/gweb.c

index 9c9fcd1..1183cc6 100644 (file)
@@ -429,13 +429,11 @@ static gboolean process_send_buffer(struct web_session *session)
                return FALSE;
        }
 
-       debug(session->web, "bytes to write %zu", count);
-
        status = g_io_channel_write_chars(session->transport_channel,
                                        buf->str, count, &bytes_written, NULL);
 
-       debug(session->web, "status %u bytes written %zu",
-                                       status, bytes_written);
+       debug(session->web, "status %u bytes to write %zu bytes written %zu",
+                                       status, count, bytes_written);
 
        if (status != G_IO_STATUS_NORMAL && status != G_IO_STATUS_AGAIN)
                return FALSE;