summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-06-13 20:12:44 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2011-06-13 20:12:44 (GMT)
commit17776e39bb138bfd48971826d97e4e556dffb7bd (patch)
tree2385e9206748fa48e0307979630b4a2b200ef417 /gweb
parent6d35affe1a82224eb7595e2fe798cedbbd70e67b (diff)
downloadconnman-17776e39bb138bfd48971826d97e4e556dffb7bd.zip
connman-17776e39bb138bfd48971826d97e4e556dffb7bd.tar.gz
connman-17776e39bb138bfd48971826d97e4e556dffb7bd.tar.bz2
gweb: Make debug for write simpler
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gweb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c
index 9c9fcd1..1183cc6 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -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;