diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-12 21:54:07 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-12 21:54:07 +0100 |
commit | f1874c259259a039227517a9cd58d7017a1bef34 (patch) | |
tree | fb1cc85521a67d5efb05434fe78cb43a4098e03d /src/dabOutput/dabOutputUdp.cpp | |
parent | e9c4e1762c3b7531ffe82dc26c67919ee38bfc3a (diff) | |
download | dabmux-f1874c259259a039227517a9cd58d7017a1bef34.tar.gz dabmux-f1874c259259a039227517a9cd58d7017a1bef34.tar.bz2 dabmux-f1874c259259a039227517a9cd58d7017a1bef34.zip |
replace all occurrencies of TcpLog and old etiLog
Diffstat (limited to 'src/dabOutput/dabOutputUdp.cpp')
-rw-r--r-- | src/dabOutput/dabOutputUdp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp index 684cd50..459120f 100644 --- a/src/dabOutput/dabOutputUdp.cpp +++ b/src/dabOutput/dabOutputUdp.cpp @@ -52,7 +52,7 @@ int DabOutputUdp::Open(const char* name) long port; address = strchr(hostport, ':'); if (address == NULL) { - etiLog.printHeader(TcpLog::ERR, + etiLog.log(error, "\"%s\" is an invalid format for UDP address: " "should be [address]:port - > aborting\n", hostport); @@ -64,19 +64,19 @@ int DabOutputUdp::Open(const char* name) port = strtol(address, (char **)NULL, 10); if ((port == LONG_MIN) || (port == LONG_MAX)) { - etiLog.printHeader(TcpLog::ERR, + etiLog.log(error, "can't convert port number in UDP address %s\n", address); goto udp_open_fail; } if (port == 0) { - etiLog.printHeader(TcpLog::ERR, + etiLog.log(error, "can't use port number 0 in UDP address\n"); goto udp_open_fail; } address = hostport; if (strlen(address) > 0) { if (this->packet_->getAddress().setAddress(address) == -1) { - etiLog.printHeader(TcpLog::ERR, "can't set address %s (%s: %s) " + etiLog.log(error, "can't set address %s (%s: %s) " "-> aborting\n", address, inetErrDesc, inetErrMsg); goto udp_open_fail; } @@ -84,7 +84,7 @@ int DabOutputUdp::Open(const char* name) this->packet_->getAddress().setPort(port); if (this->socket_->create() == -1) { - etiLog.printHeader(TcpLog::ERR, "can't create UDP socket (%s: %s) " + etiLog.log(error, "can't create UDP socket (%s: %s) " "-> aborting\n)", inetErrDesc, inetErrMsg); goto udp_open_fail; } |