diff options
| author | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
| commit | 98875c5a636f50fe89b9394b8193e86094ae14e0 (patch) | |
| tree | 305f1a3c884763aff65f8bcd12ff9d2f648a04cd /src/base/udp_server.c | |
| parent | 957f3411170ca1d5f30ee2e2c4e25393195cce75 (diff) | |
uses new macro DEBUG_MSG
Diffstat (limited to 'src/base/udp_server.c')
| -rw-r--r-- | src/base/udp_server.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/base/udp_server.c b/src/base/udp_server.c index c2d6486..a469a3a 100644 --- a/src/base/udp_server.c +++ b/src/base/udp_server.c @@ -97,13 +97,9 @@ int initUdpServer(char *ip4, int port4, char *ip6, int port6) if (sock_server_udp != NULL) { ret++; -#ifdef DEBUG - printf(_("Starting server: \"%s\" on port: \"%d\"\n"), ip4, port4); -#endif + DEBUG_MSG(_("Starting server: \"%s\" on port: \"%d\"\n"), ip4, port4); } else { -#ifdef DEBUG - printf(_("Starting server: \"%s\" on port: \"%d\" FAILED!\n"), ip4, port4); -#endif + DEBUG_MSG(_("Starting server: \"%s\" on port: \"%d\" FAILED!\n"), ip4, port4); } } @@ -112,13 +108,9 @@ int initUdpServer(char *ip4, int port4, char *ip6, int port6) if (sock_server_udp_second != NULL) { ret++; -#ifdef DEBUG - printf(_("Starting server: \"%s\" on port: \"%d\"\n"), ip6, port6); -#endif + DEBUG_MSG(_("Starting server: \"%s\" on port: \"%d\"\n"), ip6, port6); } else { -#ifdef DEBUG - printf(_("Starting server: \"%s\" on port: \"%d\" FAILED!\n"), ip6, port6); -#endif + DEBUG_MSG(_("Starting server: \"%s\" on port: \"%d\" FAILED!\n"), ip6, port6); } } @@ -241,19 +233,14 @@ int selectServerUdpSocket() void quitUdpServer() { if (sock_server_udp != NULL) { -#ifdef DEBUG - printf(_("Closing port: \"%d\"\n"), getSockUdpPort(sock_server_udp)); -#endif + DEBUG_MSG(_("Closing port: \"%d\"\n"), getSockUdpPort(sock_server_udp)); closeUdpSocket(sock_server_udp); } if (sock_server_udp_second != NULL) { -#ifdef DEBUG - printf(_("Closing port: \"%d\"\n"), getSockUdpPort(sock_server_udp_second)); -#endif + DEBUG_MSG(_("Closing port: \"%d\"\n"), getSockUdpPort(sock_server_udp_second)); closeUdpSocket(sock_server_udp_second); } -#ifdef DEBUG - printf(_("Quitting UDP\n")); -#endif + + DEBUG_MSG(_("Quitting UDP\n")); } |