1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

sdrbase: fix type warning

warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long')
This commit is contained in:
Davide Gerhard 2019-04-15 13:02:39 +02:00
parent 140c170ac4
commit 74786f550d
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
2 changed files with 36 additions and 36 deletions

View File

@ -320,22 +320,22 @@ void DeviceSinkAPI::addSourceBuddy(DeviceSourceAPI* buddy)
{ {
m_sourceBuddies.push_back(buddy); m_sourceBuddies.push_back(buddy);
buddy->m_sinkBuddies.push_back(this); buddy->m_sinkBuddies.push_back(this);
qDebug("DeviceSinkAPI::addSourceBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]", qDebug("DeviceSinkAPI::addSourceBuddy: added buddy %s(%s) to the list [%llu] <-> [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSinkAPI::addSinkBuddy(DeviceSinkAPI* buddy) void DeviceSinkAPI::addSinkBuddy(DeviceSinkAPI* buddy)
{ {
m_sinkBuddies.push_back(buddy); m_sinkBuddies.push_back(buddy);
buddy->m_sinkBuddies.push_back(this); buddy->m_sinkBuddies.push_back(this);
qDebug("DeviceSinkAPI::addSinkBuddy: added buddy %s(%s) to the list [%lx] <-> [%lx]", qDebug("DeviceSinkAPI::addSinkBuddy: added buddy %s(%s) to the list [%llu] <-> [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSinkAPI::removeSourceBuddy(DeviceSourceAPI* buddy) void DeviceSinkAPI::removeSourceBuddy(DeviceSourceAPI* buddy)
@ -346,21 +346,21 @@ void DeviceSinkAPI::removeSourceBuddy(DeviceSourceAPI* buddy)
{ {
if (*it == buddy) if (*it == buddy)
{ {
qDebug("DeviceSinkAPI::removeSourceBuddy: buddy %s(%s) [%lx] removed from the list of [%lx]", qDebug("DeviceSinkAPI::removeSourceBuddy: buddy %s(%s) [%llu] removed from the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) (*it), (quint64) (*it),
(uint64_t) this); (quint64) this);
m_sourceBuddies.erase(it); m_sourceBuddies.erase(it);
return; return;
} }
} }
qDebug("DeviceSinkAPI::removeSourceBuddy: buddy %s(%s) [%lx] not found in the list of [%lx]", qDebug("DeviceSinkAPI::removeSourceBuddy: buddy %s(%s) [%llu] not found in the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSinkAPI::removeSinkBuddy(DeviceSinkAPI* buddy) void DeviceSinkAPI::removeSinkBuddy(DeviceSinkAPI* buddy)
@ -371,21 +371,21 @@ void DeviceSinkAPI::removeSinkBuddy(DeviceSinkAPI* buddy)
{ {
if (*it == buddy) if (*it == buddy)
{ {
qDebug("DeviceSinkAPI::removeSinkBuddy: buddy %s(%s) [%lx] removed from the list of [%lx]", qDebug("DeviceSinkAPI::removeSinkBuddy: buddy %s(%s) [%llu] removed from the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) (*it), (quint64) (*it),
(uint64_t) this); (quint64) this);
m_sinkBuddies.erase(it); m_sinkBuddies.erase(it);
return; return;
} }
} }
qDebug("DeviceSinkAPI::removeSinkBuddy: buddy %s(%s) [%lx] not found in the list of [%lx]", qDebug("DeviceSinkAPI::removeSinkBuddy: buddy %s(%s) [%llu] not found in the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSinkAPI::clearBuddiesLists() void DeviceSinkAPI::clearBuddiesLists()

View File

@ -323,22 +323,22 @@ void DeviceSourceAPI::addSourceBuddy(DeviceSourceAPI* buddy)
{ {
m_sourceBuddies.push_back(buddy); m_sourceBuddies.push_back(buddy);
buddy->m_sourceBuddies.push_back(this); buddy->m_sourceBuddies.push_back(this);
qDebug("DeviceSourceAPI::addSourceBuddy: added buddy %s(%s) [%lx] <-> [%lx]", qDebug("DeviceSourceAPI::addSourceBuddy: added buddy %s(%s) [%llu] <-> [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSourceAPI::addSinkBuddy(DeviceSinkAPI* buddy) void DeviceSourceAPI::addSinkBuddy(DeviceSinkAPI* buddy)
{ {
m_sinkBuddies.push_back(buddy); m_sinkBuddies.push_back(buddy);
buddy->m_sourceBuddies.push_back(this); buddy->m_sourceBuddies.push_back(this);
qDebug("DeviceSourceAPI::addSinkBuddy: added buddy %s(%s) [%lx] <-> [%lx]", qDebug("DeviceSourceAPI::addSinkBuddy: added buddy %s(%s) [%llu] <-> [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSourceAPI::removeSourceBuddy(DeviceSourceAPI* buddy) void DeviceSourceAPI::removeSourceBuddy(DeviceSourceAPI* buddy)
@ -349,21 +349,21 @@ void DeviceSourceAPI::removeSourceBuddy(DeviceSourceAPI* buddy)
{ {
if (*it == buddy) if (*it == buddy)
{ {
qDebug("DeviceSourceAPI::removeSourceBuddy: buddy %s(%s) [%lx] removed from the list of [%lx]", qDebug("DeviceSourceAPI::removeSourceBuddy: buddy %s(%s) [%llu] removed from the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) (*it), (quint64) (*it),
(uint64_t) this); (quint64) this);
m_sourceBuddies.erase(it); m_sourceBuddies.erase(it);
return; return;
} }
} }
qDebug("DeviceSourceAPI::removeSourceBuddy: buddy %s(%s) [%lx] not found in the list of [%lx]", qDebug("DeviceSourceAPI::removeSourceBuddy: buddy %s(%s) [%llu] not found in the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSourceSerial()), qPrintable(buddy->getSampleSourceSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSourceAPI::removeSinkBuddy(DeviceSinkAPI* buddy) void DeviceSourceAPI::removeSinkBuddy(DeviceSinkAPI* buddy)
@ -374,21 +374,21 @@ void DeviceSourceAPI::removeSinkBuddy(DeviceSinkAPI* buddy)
{ {
if (*it == buddy) if (*it == buddy)
{ {
qDebug("DeviceSourceAPI::removeSinkBuddy: buddy %s(%s) [%lx] removed from the list of [%lx]", qDebug("DeviceSourceAPI::removeSinkBuddy: buddy %s(%s) [%llu] removed from the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) (*it), (quint64) (*it),
(uint64_t) this); (quint64) this);
m_sinkBuddies.erase(it); m_sinkBuddies.erase(it);
return; return;
} }
} }
qDebug("DeviceSourceAPI::removeSinkBuddy: buddy %s(%s) [%lx] not found in the list of [%lx]", qDebug("DeviceSourceAPI::removeSinkBuddy: buddy %s(%s) [%llu] not found in the list of [%llu]",
qPrintable(buddy->getHardwareId()), qPrintable(buddy->getHardwareId()),
qPrintable(buddy->getSampleSinkSerial()), qPrintable(buddy->getSampleSinkSerial()),
(uint64_t) buddy, (quint64) buddy,
(uint64_t) this); (quint64) this);
} }
void DeviceSourceAPI::clearBuddiesLists() void DeviceSourceAPI::clearBuddiesLists()