summaryrefslogtreecommitdiffstats
path: root/src/MuxElements.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-12 21:54:07 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-12 21:54:07 +0100
commitf1874c259259a039227517a9cd58d7017a1bef34 (patch)
treefb1cc85521a67d5efb05434fe78cb43a4098e03d /src/MuxElements.cpp
parente9c4e1762c3b7531ffe82dc26c67919ee38bfc3a (diff)
downloaddabmux-f1874c259259a039227517a9cd58d7017a1bef34.tar.gz
dabmux-f1874c259259a039227517a9cd58d7017a1bef34.tar.bz2
dabmux-f1874c259259a039227517a9cd58d7017a1bef34.zip
replace all occurrencies of TcpLog and old etiLog
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r--src/MuxElements.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index 6790874..407c734 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -98,19 +98,19 @@ vector<dabService*>::iterator getService(
bool dabComponent::isPacketComponent(vector<dabSubchannel*>& subchannels)
{
if (subchId > 63) {
- etiLog.printHeader(TcpLog::ERR,
+ etiLog.log(error,
"You must define subchannel id in the "
"packet component before defining packet ");
return false;
}
if (getSubchannel(subchannels, subchId) == subchannels.end()) {
- etiLog.printHeader(TcpLog::ERR,
+ etiLog.log(error,
"Invalid subchannel id in the packet component "
"for defining packet ");
return false;
}
if ((*getSubchannel(subchannels, subchId))->type != 3) {
- etiLog.printHeader(TcpLog::ERR,
+ etiLog.log(error,
"Invalid component type for defining packet ");
return false;
}
@@ -172,7 +172,7 @@ unsigned short getSizeCu(dabSubchannel* subchannel)
return (subchannel->bitrate >> 1);
break;
default: // Should not happens
- etiLog.print(TcpLog::ERR, "Bad protection level on "
+ etiLog.log(error, "Bad protection level on "
"subchannel\n");
return 0;
}
@@ -192,13 +192,13 @@ unsigned short getSizeCu(dabSubchannel* subchannel)
return (subchannel->bitrate * 15) >> 5;
break;
default: // Should not happens
- etiLog.print(TcpLog::ERR,
+ etiLog.log(error,
"Bad protection level on subchannel\n");
return 0;
}
break;
default:
- etiLog.print(TcpLog::ERR, "Invalid protection option\n");
+ etiLog.log(error, "Invalid protection option\n");
return 0;
}
}