summaryrefslogtreecommitdiff
path: root/p2pvr/devices/frontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/devices/frontend.cpp')
-rw-r--r--p2pvr/devices/frontend.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/p2pvr/devices/frontend.cpp b/p2pvr/devices/frontend.cpp
index 5b9280b..c1d2c61 100644
--- a/p2pvr/devices/frontend.cpp
+++ b/p2pvr/devices/frontend.cpp
@@ -1,15 +1,14 @@
-#include <pch.hpp>
#include "frontend.h"
#include "tuner.h"
-#include <logger.h>
#include <sys/ioctl.h>
#include <linux/dvb/frontend.h>
#include <factory.impl.h>
-Frontend::Frontend(Tuner * t, int fd, const struct dvb_frontend_info & i) :
+Frontend::Frontend(Tuner * t, int fd, const struct dvb_frontend_info & i, IceTray::Logging::LoggerPtr log) :
tuner(t),
frontendFD(fd),
- fe_info(i)
+ fe_info(i),
+ logger(log)
{
}
@@ -29,7 +28,7 @@ Frontend::GetStatus() const
{
fe_status_t status;
if (ioctl(frontendFD, FE_READ_STATUS, &status) < 0) {
- Logger()->messagebf(LOG_ERR, "Reading frontend %s status failed (%s:%d)", tuner->Device(), strerror(errno), errno);
+ logger->messagebf(LOG::ERR, "Reading frontend %s status failed (%s:%d)", tuner->Device(), strerror(errno), errno);
throw P2PVR::DeviceError(tuner->Device(), strerror(errno), errno);
}
return status;