From add5644f64c86b635b62d560187c993aa7072b76 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Jul 2017 00:15:33 +0100 Subject: BIG migration from Project2 based to IceTray/Slicer :D --- p2pvr/devices/frontend.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'p2pvr/devices/frontend.cpp') 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 #include "frontend.h" #include "tuner.h" -#include #include #include #include -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; -- cgit v1.2.3