path: root/src/platformsupport/kmsconvenience/qkmsdevice.cpp
diff options
authorThiago Macieira <>2018-07-04 23:08:43 -0700
committerThiago Macieira <>2018-07-05 14:50:35 +0000
commit55fc9a5dd9b31bc31bc7ed1eab4db3a18be21f8d (patch)
tree52103573c8b031b9640a6e720ef90758e61a71ca /src/platformsupport/kmsconvenience/qkmsdevice.cpp
parentf63e2a9175314f8a1e69d7b83b4a52e16f9542d6 (diff)
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) <>
Diffstat (limited to 'src/platformsupport/kmsconvenience/qkmsdevice.cpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/kmsconvenience/qkmsdevice.cpp b/src/platformsupport/kmsconvenience/qkmsdevice.cpp
index 59db3da776..a5895559e6 100644
--- a/src/platformsupport/kmsconvenience/qkmsdevice.cpp
+++ b/src/platformsupport/kmsconvenience/qkmsdevice.cpp
@@ -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)