Fix Clang annoying, useless warning about using %llu when it wants %lu

The types have the same size. So it's stupid for it to make the issue a
warning...

 qkmsdevice.cpp:737:88: error: format specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Werror,-Wformat]

Change-Id: I117816bf0f5e469b8d34fffd153e640b62bef635
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Thiago Macieira 2018-07-04 23:08:43 -07:00
parent f63e2a9175
commit 55fc9a5dd9

View File

@ -677,7 +677,7 @@ void QKmsDevice::enumerateProperties(drmModeObjectPropertiesPtr objProps, PropCa
} else if (propTypeIs(prop, DRM_MODE_PROP_ENUM)) {
qCDebug(qLcKmsDebug, " type is ENUM, value is %llu, possible values are:", value);
for (int i = 0; i < prop->count_enums; ++i)
qCDebug(qLcKmsDebug, " enum %d: %s - %llu", i, prop->enums[i].name, prop->enums[i].value);
qCDebug(qLcKmsDebug, " enum %d: %s - %llu", i, prop->enums[i].name, quint64(prop->enums[i].value));
} else if (propTypeIs(prop, DRM_MODE_PROP_BITMASK)) {
qCDebug(qLcKmsDebug, " type is BITMASK, value is %llu, possible bits are:", value);
for (int i = 0; i < prop->count_enums; ++i)