X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/dd60ff8bdd253cd6c24a9c8bbf6bedeecaade99c..d32954e7c6dedab32fc72c6f2f301a8530fd36cc:/src/rxqueue.c diff --git a/src/rxqueue.c b/src/rxqueue.c index e1b8f4d..d177c82 100644 --- a/src/rxqueue.c +++ b/src/rxqueue.c @@ -74,7 +74,7 @@ faim_export int aim_get_command(struct aim_session_t *sess, struct aim_conn_t *c if (conn->type == AIM_CONN_TYPE_RENDEZVOUS) return aim_get_command_rendezvous(sess, conn); if (conn->type == AIM_CONN_TYPE_RENDEZVOUS_OUT) { - printf("out on fd %d\n", conn->fd); + faimdprintf(sess, 0, "out on fd %d\n", conn->fd); return 0; } @@ -98,7 +98,7 @@ faim_export int aim_get_command(struct aim_session_t *sess, struct aim_conn_t *c * or we break. We must handle it just in case. */ if (generic[0] != 0x2a) { - faimdprintf(1, "Bad incoming data!"); + faimdprintf(sess, 1, "Bad incoming data!"); aim_conn_close(conn); faim_mutex_unlock(&conn->active); return -1;