Skip to content

Commit

Permalink
Typo's fixed and code layout.
Browse files Browse the repository at this point in the history
Changed the final HandleAddChild log message from ERROR to INFO,
similar to the other HandleAddChild log messages.
Fixed some typo's in comment and in log messages.
No functional changes.
  • Loading branch information
kmdewaal committed Feb 4, 2020
1 parent 2f93b01 commit 1fa37ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions mythtv/programs/mythbackend/autoexpire.cpp
Expand Up @@ -134,15 +134,15 @@ void AutoExpire::CalcParams()
// without handling that issue too. It is done this way
// because the scheduler thread can't afford to be blocked by
// an unresponsive, remote filesystem and the autoexpirer
// thrad can.
// thread can.
m_mainServer->GetFilesystemInfos(fsInfos, false);
}
m_instanceLock.unlock();

if (fsInfos.empty())
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Filesystem Info cache is empty, unable " "to calculate necessary parameters.");

LOG(VB_GENERAL, LOG_ERR, LOC + "Filesystem Info cache is empty, unable "
"to calculate necessary parameters.");
return;
}

Expand All @@ -154,9 +154,9 @@ void AutoExpire::CalcParams()
QMap<int, uint64_t> fsMap;
QMap<int, vector<int> > fsEncoderMap;

// we use this copying on purpose. The used_encoders map ensures
// We use this copying on purpose. The used_encoders map ensures
// that every encoder writes only to one fs.
// Copying the data minimizes the time the lock is held
// Copying the data minimizes the time the lock is held.
m_instanceLock.lock();
QMap<int, int>::const_iterator ueit = m_usedEncoders.begin();
while (ueit != m_usedEncoders.end())
Expand Down Expand Up @@ -196,7 +196,7 @@ void AutoExpire::CalcParams()
{
// remove encoder since it can't write to any file system
LOG(VB_FILE, LOG_INFO, LOC +
QString("Cardid %1: is not recoding, removing it "
QString("Cardid %1: is not recording, removing it "
"from used list.").arg(cardid));
m_instanceLock.lock();
m_usedEncoders.remove(cardid);
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -3318,9 +3318,9 @@ bool MainServer::HandleAddChildInput(uint inputid)
TVRec::s_inputsLock.unlock();
m_addChildInputLock.unlock();

LOG(VB_GENERAL, LOG_ERR, LOC +
LOG(VB_GENERAL, LOG_INFO, LOC +
QString("HandleAddChildInput: "
"Succesffuly handled input %1").arg(inputid));
"Successfully handled input %1").arg(inputid));

return true;
}
Expand Down

0 comments on commit 1fa37ae

Please sign in to comment.