author | Tero Marttila <terom@fixme.fi> |
Thu, 23 Apr 2009 21:14:19 +0300 | |
changeset 151 | b0b01420b99d |
parent 150 | e8018446b336 |
child 152 | dae7bcf08474 |
src/irc_queue.c | file | annotate | diff | comparison | revisions |
--- a/src/irc_queue.c Thu Apr 23 21:05:52 2009 +0300 +++ b/src/irc_queue.c Thu Apr 23 21:14:19 2009 +0300 @@ -17,8 +17,9 @@ time_t now = time(NULL); err_t err; int ret; - - log_debug("%s", line_buf); + + // dump for debug output, without any newline + log_debug("%.*s", (int) (strstr(line_buf, "\r\n") - line_buf), line_buf); // XXX: output buffering? if ((ret = line_proto_send(queue->lp, line_buf)) < 0)