summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:20:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:20:14 +0000
commitcc74df79d79f20d685c0968430857de59320811c (patch)
tree467a73edf4f65c094938894addb08dc7dcf95fd0 /channels.c
parent5699c5f9acb09d8e210856c3dd3cdeb4078d41a4 (diff)
- markus@cvs.openbsd.org 2001/02/28 12:55:07
[channels.c] unify debug messages
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/channels.c b/channels.c
index f10427c17..d1c90b4ac 100644
--- a/channels.c
+++ b/channels.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: channels.c,v 1.93 2001/02/28 08:54:55 markus Exp $"); 43RCSID("$OpenBSD: channels.c,v 1.94 2001/02/28 12:55:07 markus Exp $");
44 44
45#include <openssl/rsa.h> 45#include <openssl/rsa.h>
46#include <openssl/dsa.h> 46#include <openssl/dsa.h>
@@ -195,10 +195,10 @@ channel_register_fds(Channel *c, int rfd, int wfd, int efd,
195 195
196 /* XXX ugly hack: nonblock is only set by the server */ 196 /* XXX ugly hack: nonblock is only set by the server */
197 if (nonblock && isatty(c->rfd)) { 197 if (nonblock && isatty(c->rfd)) {
198 debug("channel: %d: rfd %d isatty", c->self, c->rfd); 198 debug("channel %d: rfd %d isatty", c->self, c->rfd);
199 c->isatty = 1; 199 c->isatty = 1;
200 if (!isatty(c->wfd)) { 200 if (!isatty(c->wfd)) {
201 error("channel: %d: wfd %d is not a tty?", 201 error("channel %d: wfd %d is not a tty?",
202 c->self, c->wfd); 202 c->self, c->wfd);
203 } 203 }
204 } else { 204 } else {
@@ -1069,7 +1069,7 @@ channel_output_poll()
1069 if (compat20 && 1069 if (compat20 &&
1070 (c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD))) { 1070 (c->flags & (CHAN_CLOSE_SENT|CHAN_CLOSE_RCVD))) {
1071 /* XXX is this true? */ 1071 /* XXX is this true? */
1072 debug("channel: %d: no data after CLOSE", c->self); 1072 debug("channel %d: no data after CLOSE", c->self);
1073 continue; 1073 continue;
1074 } 1074 }
1075 1075
@@ -1424,7 +1424,7 @@ channel_input_channel_request(int type, int plen, void *ctxt)
1424 debug2("callback done"); 1424 debug2("callback done");
1425 } else { 1425 } else {
1426 char *service = packet_get_string(NULL); 1426 char *service = packet_get_string(NULL);
1427 debug("channel: %d rcvd request for %s", c->self, service); 1427 debug("channel %d: rcvd request for %s", c->self, service);
1428 debug("cb_fn %p cb_event %d", c->cb_fn , c->cb_event); 1428 debug("cb_fn %p cb_event %d", c->cb_fn , c->cb_event);
1429 xfree(service); 1429 xfree(service);
1430 } 1430 }