diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-06-13 22:12:44 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-06-13 22:12:44 +0200 |
commit | 17776e39bb138bfd48971826d97e4e556dffb7bd (patch) | |
tree | 2385e9206748fa48e0307979630b4a2b200ef417 /gweb | |
parent | 6d35affe1a82224eb7595e2fe798cedbbd70e67b (diff) | |
download | connman-17776e39bb138bfd48971826d97e4e556dffb7bd.tar.gz connman-17776e39bb138bfd48971826d97e4e556dffb7bd.tar.bz2 connman-17776e39bb138bfd48971826d97e4e556dffb7bd.zip |
gweb: Make debug for write simpler
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gweb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c index 9c9fcd1b..1183cc6b 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; |