From 770a27bfb39a64cb742f73156cfb1071fe8fd603 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sat, 29 Apr 2006 01:47:06 +0000 Subject: printf -> writeln --- rdp/rdp_tcp.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'rdp/rdp_tcp.c') diff --git a/rdp/rdp_tcp.c b/rdp/rdp_tcp.c index 83187860..0283ba1d 100644 --- a/rdp/rdp_tcp.c +++ b/rdp/rdp_tcp.c @@ -57,11 +57,11 @@ rdp_tcp_recv(struct rdp_tcp* self, struct stream* s, int len) { int rcvd; - DEBUG((" in rdp_tcp_recv gota get %d bytes on sck %d\r\n", + DEBUG((" in rdp_tcp_recv gota get %d bytes on sck %d", len, self->sck)); if (self->sck_closed) { - DEBUG((" out rdp_tcp_recv error sck closed\r\n")); + DEBUG((" out rdp_tcp_recv error sck closed")); return 1; } init_stream(s, len); @@ -77,14 +77,14 @@ rdp_tcp_recv(struct rdp_tcp* self, struct stream* s, int len) else { self->sck_closed = 1; - DEBUG((" out rdp_tcp_recv error unknown\r\n")); + DEBUG((" out rdp_tcp_recv error unknown")); return 1; } } else if (rcvd == 0) { self->sck_closed = 1; - DEBUG((" out rdp_tcp_recv error connection dropped\r\n")); + DEBUG((" out rdp_tcp_recv error connection dropped")); return 1; } else @@ -107,11 +107,11 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) if (self->sck_closed) { - DEBUG((" out rdp_tcp_send error sck closed\r\n")); + DEBUG((" out rdp_tcp_send error sck closed")); return 1; } len = s->end - s->data; - DEBUG((" in rdp_tcp_send gota send %d bytes on sck %d\r\n", len, + DEBUG((" in rdp_tcp_send gota send %d bytes on sck %d", len, self->sck)); total = 0; while (total < len) @@ -126,14 +126,14 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) else { self->sck_closed = 1; - DEBUG((" out rdp_tcp_send error unknown\r\n")); + DEBUG((" out rdp_tcp_send error unknown")); return 1; } } else if (sent == 0) { self->sck_closed = 1; - DEBUG((" out rdp_tcp_send error connection dropped\r\n")); + DEBUG((" out rdp_tcp_send error connection dropped")); return 1; } else @@ -149,7 +149,7 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s) int APP_CC rdp_tcp_connect(struct rdp_tcp* self, char* ip, char* port) { - DEBUG((" in rdp_tcp_connect ip %s port %s\r\n", ip, port)); + DEBUG((" in rdp_tcp_connect ip %s port %s", ip, port)); self->sck = g_tcp_socket(); if (g_tcp_connect(self->sck, ip, port) == 0) { @@ -157,10 +157,10 @@ rdp_tcp_connect(struct rdp_tcp* self, char* ip, char* port) } else { - DEBUG((" out rdp_tcp_connect error g_tcp_connect failed\r\n")); + DEBUG((" out rdp_tcp_connect error g_tcp_connect failed")); return 1; } - DEBUG((" out rdp_tcp_connect\r\n")); + DEBUG((" out rdp_tcp_connect")); return 0; } -- cgit v1.2.1