summaryrefslogtreecommitdiffstats
path: root/src/dabInputDabplusFile.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/dabInputDabplusFile.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/dabInputDabplusFile.cpp')
-rw-r--r--src/dabInputDabplusFile.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dabInputDabplusFile.cpp b/src/dabInputDabplusFile.cpp
index 8d46ea1..1a56346 100644
--- a/src/dabInputDabplusFile.cpp
+++ b/src/dabInputDabplusFile.cpp
@@ -92,7 +92,7 @@ int dabInputDabplusFileRead(void* args, void* buffer, int size)
int ret = read(data->file, data->buffer, data->bufferSize);
if (ret != data->bufferSize) {
if (ret != 0) {
- etiLog.print(TcpLog::CRIT, "ERROR: Incomplete DAB+ frame!\n");
+ etiLog.log(alert, "ERROR: Incomplete DAB+ frame!\n");
}
return 0;
}
@@ -115,27 +115,27 @@ int dabInputDabplusFileReadFrame(dabInputOperations* ops, void* args,
result = ops->read(args, dataOut, size);
if (result == -1) {
- etiLog.print(TcpLog::CRIT, "ERROR: Can't read file\n");
+ etiLog.log(alert, "ERROR: Can't read file\n");
perror("");
return -1;
}
if (result < size) {
int sizeOut = result;
- etiLog.print(TcpLog::NOTICE, "reach end of file -> rewinding\n");
+ etiLog.log(info, "reach end of file -> rewinding\n");
if (ops->rewind(args) == -1) {
- etiLog.print(TcpLog::CRIT, "ERROR: Can't rewind file\n");
+ etiLog.log(alert, "ERROR: Can't rewind file\n");
return -1;
}
result = ops->read(args, dataOut + sizeOut, size - sizeOut);
if (result == -1) {
- etiLog.print(TcpLog::CRIT, "ERROR: Can't read file\n");
+ etiLog.log(alert, "ERROR: Can't read file\n");
perror("");
return -1;
}
if (result < size) {
- etiLog.print(TcpLog::CRIT, "ERROR: Not enought data in file\n");
+ etiLog.log(alert, "ERROR: Not enought data in file\n");
return -1;
}
}