# HG changeset patch # User Thomas Klausner # Date 1370014396 -7200 # Node ID 6df90573cf57245388bc164e76c2f9788f6ffffa # Parent 3322c48c2177ef80d4f27f3be34a02ce64120569 Remove \n from LOG_E line. diff -r 3322c48c2177 -r 6df90573cf57 libfdcore/hooks.c --- 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; }