kms-impl-device: Use portable formatting for 64-bit integers

On 64-bit systems uint64_t is %lu but on 32-bit systems it is %llu.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/778
This commit is contained in:
Daniel van Vugt 2019-09-06 17:54:00 +08:00 committed by Jonas Ådahl
parent 0863bd2408
commit 7a0340c57d

View File

@ -266,7 +266,8 @@ get_plane_type (MetaKmsImplDevice *impl_device,
case DRM_PLANE_TYPE_OVERLAY:
return META_KMS_PLANE_TYPE_OVERLAY;
default:
g_warning ("Unhandled plane type %lu", props->prop_values[idx]);
g_warning ("Unhandled plane type %" G_GUINT64_FORMAT,
props->prop_values[idx]);
return -1;
}
}