Skip to content
Permalink
Browse files

Per request from Devin, include error when FE_GET_INFO ioctl fails.

  • Loading branch information
stuartm committed Jan 3, 2012
1 parent 3a75bdf commit 8e9d2a04c28d1becd4c7526fb08ea1dd9e192144
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/libs/libmythtv/cardutil.cpp
@@ -347,7 +347,7 @@ QStringList CardUtil::ProbeVideoDevices(const QString &rawtype)

if (result >= max_count)
{
LOG(VB_GENERAL, LOG_WARNING,
LOG(VB_GENERAL, LOG_WARNING,
"Warning: may be > 50 HDHomerun devices");
}

@@ -410,7 +410,8 @@ QString CardUtil::ProbeDVBType(const QString &device)
if (err < 0)
{
close(fd_frontend);
LOG(VB_GENERAL, LOG_ERR, "FE_GET_INFO ioctl failed (" + dvbdev + ").");
LOG(VB_GENERAL, LOG_ERR, QString("FE_GET_INFO ioctl failed (%1)")
.arg(dvbdev) + ENO);
return ret;
}
close(fd_frontend);
@@ -1822,7 +1823,7 @@ InputNames CardUtil::ProbeV4LVideoInputs(int videofd, bool &ok)

if (ioctl(videofd, VIDIOCGCHAN, &test) != 0)
{
LOG(VB_GENERAL, LOG_ERR, "ProbeV4LVideoInputs(): Error, " +
LOG(VB_GENERAL, LOG_ERR, "ProbeV4LVideoInputs(): Error, " +
QString("Could determine name of input #%1"
"\n\t\t\tNot adding it to the list.")
.arg(test.channel) + ENO);

0 comments on commit 8e9d2a0

Please sign in to comment.
You can’t perform that action at this time.