Mercurial > hg > freeDiameter
changeset 1163:6df90573cf57
Remove \n from LOG_E line.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Fri, 31 May 2013 17:33:16 +0200 |
parents | 3322c48c2177 |
children | 5b930daeb4c1 |
files | libfdcore/hooks.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/hooks.c Fri May 31 17:31:42 2013 +0200 +++ b/libfdcore/hooks.c Fri May 31 17:33:16 2013 +0200 @@ -358,7 +358,8 @@ CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break); - LOG_E("Parsing error: '%s' for the following message received from '%s':\n%s", (char *)other, (char *)id, buf); + LOG_E("Parsing error: '%s' for the following message received from '%s':", (char *)other, (char *)id); + LOG_E("%s", buf); } else { struct fd_cnx_rcvdata *rcv_data = other; CHECK_MALLOC_DO(fd_dump_extend_hexdump(&buf, &len, NULL, rcv_data->buffer, rcv_data->length, 0, 0), break); @@ -377,7 +378,8 @@ CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break); - LOG_E("Routing error: '%s' for the following message:\n%s", (char *)other, buf); + LOG_E("Routing error: '%s' for the following message:", (char *)other); + LOG_E("%s", buf); break; } @@ -395,7 +397,8 @@ case HOOK_MESSAGE_DROPPED: { CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break); - LOG_E("Message discarded ('%s'):\n%s", (char *)other, buf); + LOG_E("Message discarded ('%s'):", (char *)other); + LOG_E("%s", buf); break; }