Skip to content

Commit

Permalink
Mac OS X compile fixes after recent logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelPearson committed Jun 10, 2011
1 parent 857fc43 commit 17f89d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/darwinavcinfo.cpp
Expand Up @@ -97,7 +97,7 @@ void DarwinAVCInfo::Update(uint64_t _guid, DarwinFirewireDevice *dev,
//////////////////////////
// get subunit info

VERBOSE(VB_RECORD, "Scanning guid: 0x"<<hex<<guid<<dec);
VERBOSE(VB_RECORD, QString("Scanning guid: 0x%1").arg(guid, 0, 16));

bool wasOpen = IsAVCInterfaceOpen();
if (OpenAVCInterface(thread_cf_ref))
Expand Down
23 changes: 12 additions & 11 deletions mythtv/libs/libmythtv/darwinfirewiredevice.cpp
Expand Up @@ -330,7 +330,8 @@ bool DarwinFirewireDevice::OpenAVStream(void)
return true;

int max_speed = GetMaxSpeed();
VERBOSE(VB_IMPORTANT, "Max Speed: "<<max_speed<<" Our speed: "<<m_speed);
VERBOSE(VB_IMPORTANT, QString("Max Speed: %1, Our speed: %2")
.arg(max_speed).arg(m_speed));
m_speed = min((uint)max_speed, m_speed);

uint fwchan = 0;
Expand Down Expand Up @@ -472,8 +473,8 @@ bool DarwinFirewireDevice::StartStreaming(void)

m_priv->is_streaming = (kIOReturnSuccess == ret);

VERBOSE(VB_IMPORTANT, LOC + "Starting A/V streaming: "
<<((m_priv->is_streaming)?"success":"failure"));
VERBOSE(VB_IMPORTANT, (LOC + "Starting A/V streaming: %1")
.arg((m_priv->is_streaming)?"success":"failure"));

return m_priv->is_streaming;
}
Expand Down Expand Up @@ -586,8 +587,8 @@ void DarwinFirewireDevice::ProcessStreamingMessage(
{
int ret = UpdatePlugRegister(plug_number, -1, -1, false, true);

VERBOSE(VB_IMPORTANT, LOC + "ReleaseIsochPort "
<<((kIOReturnSuccess == ret)?"ok":"error"));
VERBOSE(VB_IMPORTANT, (LOC + "ReleaseIsochPort %1")
.arg((kIOReturnSuccess == ret)?"ok":"error"));
}
else if (AVS::kMpeg2ReceiverDCLOverrun == msg)
{
Expand Down Expand Up @@ -657,7 +658,7 @@ void DarwinFirewireDevice::UpdateDeviceListItem(uint64_t guid, void *pitem)
{
DarwinAVCInfo *ptr = new DarwinAVCInfo();

VERBOSE(VB_IMPORTANT, "Adding 0x"<<hex<<guid<<dec);
VERBOSE(VB_IMPORTANT, QString("Adding 0x%1").arg(guid, 0, 16));

m_priv->devices[guid] = ptr;
it = m_priv->devices.find(guid);
Expand All @@ -666,7 +667,7 @@ void DarwinFirewireDevice::UpdateDeviceListItem(uint64_t guid, void *pitem)
io_object_t &item = *((io_object_t*) pitem);
if (it != m_priv->devices.end())
{
VERBOSE(VB_IMPORTANT, "Updating 0x"<<hex<<guid<<dec);
VERBOSE(VB_IMPORTANT, QString("Updating 0x%1").arg(guid, 0, 16));
(*it)->Update(guid, this, m_priv->notify_port,
m_priv->controller_thread_cf_ref, item);
}
Expand Down Expand Up @@ -716,8 +717,8 @@ bool DarwinFirewireDevice::UpdatePlugRegisterPrivate(
new_plug_cnt += ((add_plug) ? 1 : 0) - ((remove_plug) ? 1 : 0);
if ((new_plug_cnt > 0x3f) || (new_plug_cnt < 0))
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Invalid Plug Count "<<new_plug_cnt);

VERBOSE(VB_IMPORTANT, (LOC_ERR + "Invalid Plug Count %1")
.arg(new_plug_cnt));
return false;
}

Expand Down Expand Up @@ -869,8 +870,8 @@ void DarwinFirewireDevice::HandleDeviceChange(uint messageType)
VERBOSE(VB_RECORD, loc + "kIOMessageSystemWillRestart");
else
{
VERBOSE(VB_RECORD, loc + "unknown message 0x"
<<hex<<messageType<<dec);
VERBOSE(VB_RECORD, (loc + "unknown message 0x%1%2%3")
.arg(messageType, 0, 16));
}
}

Expand Down

0 comments on commit 17f89d1

Please sign in to comment.