debug: refactor message debugging
commit3cc60ac279722d89ea5214fab0d376f440535f90
authorStefan Becker <stefan.becker@nokia.com>
Sat, 19 Jun 2010 20:38:52 +0000 (19 23:38 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Sat, 19 Jun 2010 20:38:52 +0000 (19 23:38 +0300)
tree6875ba09baec87b04f94568aad93a671bd96aa2c
parentf1ebb6bdb2060e1692fb6b61614681a46c6f0d91
debug: refactor message debugging

New function sipe_utils_message_debug() handles all message debugging needs.

This not only removes code duplication but also ensures that all messages
use the same format in the log. That will make life easier for a debug analyzer
script, an idea I've had in my head for some time now. The message format will
probably have to be refined in conjunction with the development of such an
analyzer.

fix_newlines() removed.
src/api/sipe-core.h
src/core/http-conn.c
src/core/sip-transport.c
src/core/sipe-incoming.c
src/core/sipe-utils.c
src/core/sipe-utils.h
src/core/sipe-xml-tests.c
src/core/sipe.c
src/purple/purple-transport.c