Mercurial > hg > freeDiameter
changeset 975:5c564966a754
Remove \n from fd_msg_log.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Thu, 14 Mar 2013 18:27:39 +0100 |
parents | 2091bf698fb1 |
children | 33f18714b1fb |
files | libfdcore/p_ce.c libfdcore/p_out.c libfdcore/p_psm.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/p_ce.c Thu Mar 14 18:14:35 2013 +0100 +++ b/libfdcore/p_ce.c Thu Mar 14 18:27:39 2013 +0100 @@ -719,7 +719,7 @@ /* If the state is not WAITCEA, just discard the message */ if (req || ((st = fd_peer_getstate(peer)) != STATE_WAITCEA)) { if (*msg) { - fd_msg_log( FD_MSG_LOG_DROPPED, *msg, "Received CER/CEA while in '%s' state.\n", STATE_STR(st)); + fd_msg_log( FD_MSG_LOG_DROPPED, *msg, "Received CER/CEA while in '%s' state.", STATE_STR(st)); CHECK_FCT_DO( fd_msg_free(*msg), /* continue */); *msg = NULL; }
--- a/libfdcore/p_out.c Thu Mar 14 18:14:35 2013 +0100 +++ b/libfdcore/p_out.c Thu Mar 14 18:27:39 2013 +0100 @@ -154,7 +154,7 @@ CHECK_FCT_DO( ret = do_send(&msg, 0, peer->p_cnxctx, &peer->p_hbh, &peer->p_sr), { if (msg) { - fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: Problem while sending (%s)\n", strerror(ret) ); + fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: Problem while sending (%s)", strerror(ret) ); fd_msg_free(msg); } } ); @@ -194,7 +194,7 @@ CHECK_FCT_DO( ret = do_send(msg, flags, cnx, hbh, peer ? &peer->p_sr : NULL), { if (msg) { - fd_msg_log( FD_MSG_LOG_DROPPED, *msg, "Internal error: Problem while sending (%s)\n", strerror(ret) ); + fd_msg_log( FD_MSG_LOG_DROPPED, *msg, "Internal error: Problem while sending (%s)", strerror(ret) ); fd_msg_free(*msg); *msg = NULL; }
--- a/libfdcore/p_psm.c Thu Mar 14 18:14:35 2013 +0100 +++ b/libfdcore/p_psm.c Thu Mar 14 18:27:39 2013 +0100 @@ -586,7 +586,7 @@ CHECK_FCT_DO( ret = fd_out_send(&msg, NULL, peer, FD_CNX_ORDERED), ); if (msg) { /* Only if an error occurred & the message was not saved / dumped */ - fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: Problem while sending (%s)\n", strerror(ret) ); + fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: Problem while sending (%s)", strerror(ret) ); CHECK_FCT_DO( fd_msg_free(msg), goto psm_end); } } else {